@porsche-design-system/components-react 3.0.0-alpha.4 → 3.0.0-alpha.6
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 +161 -16
- package/esm/lib/components/accordion.wrapper.js +2 -2
- package/esm/lib/components/banner.wrapper.js +3 -3
- package/esm/lib/components/carousel.wrapper.js +2 -2
- package/esm/lib/components/crest.wrapper.js +22 -0
- package/esm/lib/components/inline-notification.wrapper.js +3 -3
- package/esm/lib/components/marque.wrapper.js +1 -0
- package/esm/lib/components/pagination.wrapper.js +2 -2
- package/esm/lib/components/segmented-control.wrapper.js +2 -2
- package/esm/lib/components/stepper-horizontal.wrapper.js +2 -2
- package/esm/lib/components/switch.wrapper.js +2 -2
- package/esm/lib/components/table.wrapper.js +2 -2
- package/esm/lib/components/tabs-bar.wrapper.js +2 -2
- package/esm/lib/components/tabs.wrapper.js +2 -2
- package/esm/lib/components/wordmark.wrapper.js +22 -0
- package/esm/public-api.js +2 -0
- package/lib/components/accordion.wrapper.d.ts +7 -7
- package/lib/components/accordion.wrapper.js +2 -2
- package/lib/components/banner.wrapper.d.ts +18 -2
- package/lib/components/banner.wrapper.js +3 -3
- package/lib/components/carousel.wrapper.d.ts +7 -7
- package/lib/components/carousel.wrapper.js +2 -2
- package/lib/components/crest.wrapper.d.ts +30 -0
- package/lib/components/crest.wrapper.js +24 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/inline-notification.wrapper.d.ts +10 -2
- package/lib/components/inline-notification.wrapper.js +3 -3
- package/lib/components/marque.wrapper.d.ts +1 -0
- package/lib/components/marque.wrapper.js +1 -0
- package/lib/components/pagination.wrapper.d.ts +9 -9
- package/lib/components/pagination.wrapper.js +2 -2
- package/lib/components/segmented-control.wrapper.d.ts +9 -9
- package/lib/components/segmented-control.wrapper.js +2 -2
- package/lib/components/stepper-horizontal.wrapper.d.ts +9 -9
- package/lib/components/stepper-horizontal.wrapper.js +2 -2
- package/lib/components/switch.wrapper.d.ts +9 -9
- package/lib/components/switch.wrapper.js +2 -2
- package/lib/components/table.wrapper.d.ts +9 -9
- package/lib/components/table.wrapper.js +2 -2
- package/lib/components/tabs-bar.wrapper.d.ts +9 -9
- package/lib/components/tabs-bar.wrapper.js +2 -2
- package/lib/components/tabs.wrapper.d.ts +9 -9
- package/lib/components/tabs.wrapper.js +2 -2
- package/lib/components/wordmark.wrapper.d.ts +46 -0
- package/lib/components/wordmark.wrapper.js +24 -0
- package/lib/types.d.ts +35 -19
- package/package.json +2 -2
- package/public-api.js +4 -0
- package/ssr/components/dist/styles/esm/styles-entry.js +275 -273
- package/ssr/components/dist/utils/esm/utils-entry.js +69 -41
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/crest.wrapper.js +37 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/marque.wrapper.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/wordmark.wrapper.js +37 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +7 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +3 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +18 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +7 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +3 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +19 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/public-api.js +4 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +216 -216
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +67 -41
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/crest.wrapper.js +35 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/marque.wrapper.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/wordmark.wrapper.js +35 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +6 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +16 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +17 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.js +2 -0
- package/ssr/lib/components/accordion.wrapper.d.ts +7 -7
- package/ssr/lib/components/banner.wrapper.d.ts +18 -2
- package/ssr/lib/components/carousel.wrapper.d.ts +7 -7
- package/ssr/lib/components/crest.wrapper.d.ts +30 -0
- package/ssr/lib/components/index.d.ts +2 -0
- package/ssr/lib/components/inline-notification.wrapper.d.ts +10 -2
- package/ssr/lib/components/marque.wrapper.d.ts +1 -0
- package/ssr/lib/components/pagination.wrapper.d.ts +9 -9
- package/ssr/lib/components/segmented-control.wrapper.d.ts +9 -9
- package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +9 -9
- package/ssr/lib/components/switch.wrapper.d.ts +9 -9
- package/ssr/lib/components/table.wrapper.d.ts +9 -9
- package/ssr/lib/components/tabs-bar.wrapper.d.ts +9 -9
- package/ssr/lib/components/tabs.wrapper.d.ts +9 -9
- package/ssr/lib/components/wordmark.wrapper.d.ts +46 -0
- package/ssr/lib/dsr-components/banner.d.ts +2 -0
- package/ssr/lib/dsr-components/crest.d.ts +5 -0
- package/ssr/lib/dsr-components/inline-notification.d.ts +1 -0
- package/ssr/lib/dsr-components/marque.d.ts +1 -0
- package/ssr/lib/dsr-components/switch.d.ts +0 -3
- package/ssr/lib/dsr-components/wordmark.d.ts +5 -0
- package/ssr/lib/types.d.ts +35 -19
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js
CHANGED
|
@@ -8,6 +8,7 @@ import '../components/button-tile.wrapper.js';
|
|
|
8
8
|
import '../components/carousel.wrapper.js';
|
|
9
9
|
import '../components/checkbox-wrapper.wrapper.js';
|
|
10
10
|
import '../components/content-wrapper.wrapper.js';
|
|
11
|
+
import '../components/crest.wrapper.js';
|
|
11
12
|
import '../components/display.wrapper.js';
|
|
12
13
|
import '../components/divider.wrapper.js';
|
|
13
14
|
import '../components/fieldset.wrapper.js';
|
|
@@ -57,18 +58,19 @@ import '../components/text-list.wrapper.js';
|
|
|
57
58
|
import '../components/text-list-item.wrapper.js';
|
|
58
59
|
import '../components/textarea-wrapper.wrapper.js';
|
|
59
60
|
import '../components/toast.wrapper.js';
|
|
61
|
+
import '../components/wordmark.wrapper.js';
|
|
60
62
|
import { splitChildren } from '../../splitChildren.js';
|
|
61
63
|
import { Component } from 'react';
|
|
62
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
63
65
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
64
|
-
import { getButtonCss as getComponentCss$
|
|
65
|
-
import { getButtonAriaAttributes, getLinkButtonThemeForIcon, hasVisibleIcon
|
|
66
|
+
import { getButtonCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
67
|
+
import { getButtonAriaAttributes, getLinkButtonThemeForIcon, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
66
68
|
|
|
67
69
|
class DSRButton extends Component {
|
|
68
70
|
render() {
|
|
69
71
|
splitChildren(this.props.children);
|
|
70
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
71
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("button", { ...getButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, children: [this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: getLinkButtonThemeForIcon(this.props.variant, this.props.theme), aria: { 'aria-label': 'Loading state:' } })), hasVisibleIcon(this.props.icon, this.props.iconSource) && (jsx(PIcon, { className: "icon", size: "inherit", name: this.props.iconSource ? undefined : this.props.icon, source: this.props.iconSource, color:
|
|
72
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$T(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, this.props.disabled, this.props.loading, this.props.theme)));
|
|
73
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("button", { ...getButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, children: [this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: getLinkButtonThemeForIcon(this.props.variant, this.props.theme), aria: { 'aria-label': 'Loading state:' } })), hasVisibleIcon(this.props.icon, this.props.iconSource) && (jsx(PIcon, { className: "icon", size: "inherit", name: this.props.iconSource ? undefined : this.props.icon, source: this.props.iconSource, color: this.props.disabled ? (this.props.variant === 'primary' ? 'contrast-high' : 'state-disabled') : 'primary', theme: !this.props.disabled ? getLinkButtonThemeForIcon(this.props.variant, this.props.theme) : this.props.theme, "aria-hidden": "true" })), jsx("span", { className: "label", children: jsx("slot", {}) })] })] }), this.props.children] }));
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
76
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js
CHANGED
|
@@ -8,6 +8,7 @@ import '../components/button-tile.wrapper.js';
|
|
|
8
8
|
import '../components/carousel.wrapper.js';
|
|
9
9
|
import '../components/checkbox-wrapper.wrapper.js';
|
|
10
10
|
import '../components/content-wrapper.wrapper.js';
|
|
11
|
+
import '../components/crest.wrapper.js';
|
|
11
12
|
import '../components/display.wrapper.js';
|
|
12
13
|
import '../components/divider.wrapper.js';
|
|
13
14
|
import '../components/fieldset.wrapper.js';
|
|
@@ -57,11 +58,12 @@ import '../components/text-list.wrapper.js';
|
|
|
57
58
|
import '../components/text-list-item.wrapper.js';
|
|
58
59
|
import '../components/textarea-wrapper.wrapper.js';
|
|
59
60
|
import '../components/toast.wrapper.js';
|
|
61
|
+
import '../components/wordmark.wrapper.js';
|
|
60
62
|
import { splitChildren } from '../../splitChildren.js';
|
|
61
63
|
import { Component } from 'react';
|
|
62
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
63
65
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
64
|
-
import { getCarouselCss as getComponentCss$
|
|
66
|
+
import { getCarouselCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
65
67
|
|
|
66
68
|
class DSRCarousel extends Component {
|
|
67
69
|
constructor() {
|
|
@@ -79,7 +81,7 @@ class DSRCarousel extends Component {
|
|
|
79
81
|
theme: this.props.theme,
|
|
80
82
|
// 'aria-controls': 'splide-track', // TODO: cross shadow dom? use native button tag instead of p-button-pure?
|
|
81
83
|
};
|
|
82
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
84
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$S(this.props.width,
|
|
83
85
|
// flip boolean values of disablePagination since it is the inverse of pagination
|
|
84
86
|
this.props.disablePagination
|
|
85
87
|
? typeof this.props.disablePagination === 'object'
|
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getCheckboxWrapperCss as getComponentCss$
|
|
6
|
+
import { getCheckboxWrapperCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
import { StateMessage } from './state-message.js';
|
|
8
8
|
|
|
9
9
|
class DSRCheckboxWrapper extends Component {
|
|
10
10
|
render() {
|
|
11
11
|
var _a;
|
|
12
12
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$R(this.props.hideLabel, this.props.state, typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && ((_a = otherChildren[0]) === null || _a === void 0 ? void 0 : _a.props.disabled), this.props.theme)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("label", { children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsx("span", { className: "text", children: this.props.label || jsx("slot", { name: "label" }) })), jsx("slot", {})] }), (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) && (jsx(StateMessage, { state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }))] })] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -3,13 +3,13 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getContentWrapperCss as getComponentCss$
|
|
6
|
+
import { getContentWrapperCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
9
9
|
class DSRContentWrapper extends Component {
|
|
10
10
|
render() {
|
|
11
11
|
splitChildren(this.props.children);
|
|
12
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
12
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Q(this.props.width)));
|
|
13
13
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
import { minifyCss } from '../../minifyCss.js';
|
|
4
|
+
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
5
|
+
import { getCrestCss as getComponentCss$P } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
6
|
+
import { buildCrestSrcSet, crestCdnBaseUrl, crestInnerManifest, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
7
|
+
|
|
8
|
+
class DSRCrest extends Component {
|
|
9
|
+
render() {
|
|
10
|
+
const picture = (jsxs("picture", { children: [jsx("source", { srcSet: buildCrestSrcSet('webp'), type: "image/webp" }, "webp"), jsx("source", { srcSet: buildCrestSrcSet('png'), type: "image/png" }, "png"), jsx("img", { src: `${crestCdnBaseUrl}/${crestInnerManifest['2x'].png}`, alt: "Porsche" })] }));
|
|
11
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$P()));
|
|
12
|
+
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 })) })] }) }));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { DSRCrest };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js
CHANGED
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getDisplayCss as getComponentCss$
|
|
6
|
+
import { getDisplayCss as getComponentCss$O } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
import { getDisplayTagType } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
8
8
|
|
|
9
9
|
class DSRDisplay extends Component {
|
|
10
10
|
render() {
|
|
11
11
|
splitChildren(this.props.children);
|
|
12
12
|
const TagType = getDisplayTagType(null, this.props.size, this.props.tag);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$O(this.props.size, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
5
|
-
import { getDividerCss as getComponentCss$
|
|
5
|
+
import { getDividerCss as getComponentCss$N } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
6
6
|
|
|
7
7
|
class DSRDivider extends Component {
|
|
8
8
|
render() {
|
|
@@ -11,7 +11,7 @@ class DSRDivider extends Component {
|
|
|
11
11
|
'neutral-contrast-medium': 'contrast-medium',
|
|
12
12
|
'neutral-contrast-high': 'contrast-high',
|
|
13
13
|
};
|
|
14
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
14
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$N((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme)));
|
|
15
15
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("hr", {})] }) }));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getFieldsetWrapperCss as getComponentCss$
|
|
6
|
+
import { getFieldsetWrapperCss as getComponentCss$M } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
import { StateMessage } from './state-message.js';
|
|
8
8
|
import { Required } from './required.js';
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ class DSRFieldsetWrapper extends Component {
|
|
|
13
13
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
14
14
|
const messageId = 'message';
|
|
15
15
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
16
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
16
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$M(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
|
|
17
17
|
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", {}), hasMessageValue && (jsx(StateMessage, { id: messageId, state: this.props.state, message: this.props.message, theme: "light", host: null }))] })] }), this.props.children] }));
|
|
18
18
|
}
|
|
19
19
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getFieldsetCss as getComponentCss$
|
|
6
|
+
import { getFieldsetCss as getComponentCss$L } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
import { StateMessage } from './state-message.js';
|
|
8
8
|
import { Required } from './required.js';
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ class DSRFieldset extends Component {
|
|
|
12
12
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
13
13
|
const messageId = 'message';
|
|
14
14
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
15
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
15
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$L(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
|
|
16
16
|
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", {}), hasMessageValue && (jsx(StateMessage, { id: messageId, state: this.props.state, message: this.props.message, theme: "light", host: null }))] })] }), this.props.children] }));
|
|
17
17
|
}
|
|
18
18
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js
CHANGED
|
@@ -3,13 +3,13 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getFlexItemCss as getComponentCss$
|
|
6
|
+
import { getFlexItemCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
9
9
|
class DSRFlexItem extends Component {
|
|
10
10
|
render() {
|
|
11
11
|
splitChildren(this.props.children);
|
|
12
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
12
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$K(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex)));
|
|
13
13
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -3,13 +3,13 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getFlexCss as getComponentCss$
|
|
6
|
+
import { getFlexCss as getComponentCss$J } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
9
9
|
class DSRFlex extends Component {
|
|
10
10
|
render() {
|
|
11
11
|
splitChildren(this.props.children);
|
|
12
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
12
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$J(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent)));
|
|
13
13
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
14
14
|
}
|
|
15
15
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js
CHANGED
|
@@ -3,13 +3,13 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getGridItemCss as getComponentCss$
|
|
6
|
+
import { getGridItemCss as getComponentCss$I } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
9
9
|
class DSRGridItem extends Component {
|
|
10
10
|
render() {
|
|
11
11
|
splitChildren(this.props.children);
|
|
12
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
12
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$I(this.props.size, this.props.offset)));
|
|
13
13
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getGridCss as getComponentCss$
|
|
6
|
+
import { getGridCss as getComponentCss$H } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
9
9
|
class DSRGrid extends Component {
|
|
@@ -12,7 +12,7 @@ class DSRGrid extends Component {
|
|
|
12
12
|
const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
13
13
|
? { ...child, props: { ...child.props, gutter: this.props.gutter } }
|
|
14
14
|
: child);
|
|
15
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
15
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$H(this.props.direction, this.props.wrap)));
|
|
16
16
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), manipulatedChildren] }));
|
|
17
17
|
}
|
|
18
18
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js
CHANGED
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getHeadingCss as getComponentCss$
|
|
6
|
+
import { getHeadingCss as getComponentCss$G } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
import { getHeadingTagType } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
8
8
|
|
|
9
9
|
class DSRHeading extends Component {
|
|
10
10
|
render() {
|
|
11
11
|
splitChildren(this.props.children);
|
|
12
12
|
const TagType = getHeadingTagType(null, this.props.size, this.props.tag);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$G(this.props.size, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.js';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.js';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
6
|
-
import { getHeadlineCss as getComponentCss$
|
|
6
|
+
import { getHeadlineCss as getComponentCss$F } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
7
7
|
import { getHeadlineTagType } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
8
8
|
|
|
9
9
|
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-heading" instead. */
|
|
@@ -11,7 +11,7 @@ class DSRHeadline extends Component {
|
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
13
|
const TagType = getHeadlineTagType(null, this.props.variant, this.props.tag);
|
|
14
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
14
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$F(this.props.variant, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
|
|
15
15
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
5
|
-
import { getIconCss as getComponentCss$
|
|
5
|
+
import { getIconCss as getComponentCss$E } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
6
6
|
import { buildIconUrl, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
7
7
|
|
|
8
8
|
class DSRIcon extends Component {
|
|
@@ -16,7 +16,7 @@ class DSRIcon extends Component {
|
|
|
16
16
|
'notification-neutral': 'notification-info',
|
|
17
17
|
};
|
|
18
18
|
// TODO: wouldn't it be better to set alt attribute instead of aria-label?
|
|
19
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
19
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$E((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), ...parseAndGetAriaAttributes(this.props.aria), alt: "" })] }) }));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -8,6 +8,7 @@ import '../components/button-tile.wrapper.js';
|
|
|
8
8
|
import '../components/carousel.wrapper.js';
|
|
9
9
|
import '../components/checkbox-wrapper.wrapper.js';
|
|
10
10
|
import '../components/content-wrapper.wrapper.js';
|
|
11
|
+
import '../components/crest.wrapper.js';
|
|
11
12
|
import '../components/display.wrapper.js';
|
|
12
13
|
import '../components/divider.wrapper.js';
|
|
13
14
|
import '../components/fieldset.wrapper.js';
|
|
@@ -57,21 +58,25 @@ import '../components/text-list.wrapper.js';
|
|
|
57
58
|
import '../components/text-list-item.wrapper.js';
|
|
58
59
|
import '../components/textarea-wrapper.wrapper.js';
|
|
59
60
|
import '../components/toast.wrapper.js';
|
|
61
|
+
import '../components/wordmark.wrapper.js';
|
|
60
62
|
import { splitChildren } from '../../splitChildren.js';
|
|
61
63
|
import { Component } from 'react';
|
|
62
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
63
65
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
64
|
-
import { getInlineNotificationCss as getComponentCss$
|
|
66
|
+
import { getInlineNotificationCss as getComponentCss$D } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
65
67
|
import { getInlineNotificationIconName, getContentAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
66
68
|
|
|
67
69
|
class DSRInlineNotification extends Component {
|
|
70
|
+
get hasDismissButton() {
|
|
71
|
+
return this.props.persistent ? false : this.props.dismissButton;
|
|
72
|
+
}
|
|
68
73
|
render() {
|
|
69
74
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
70
75
|
const bannerId = 'banner';
|
|
71
76
|
const labelId = 'label';
|
|
72
77
|
const descriptionId = 'description';
|
|
73
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
74
|
-
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) && jsx("h5", { id: labelId, children: this.props.heading || jsx("slot", { name: "heading" }) }), jsx("p", { id: descriptionId, 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 })),
|
|
78
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$D(this.props.state, !!this.props.actionLabel, this.hasDismissButton, this.props.theme)));
|
|
79
|
+
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) && jsx("h5", { id: labelId, children: this.props.heading || jsx("slot", { name: "heading" }) }), jsx("p", { id: descriptionId, 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(PButtonPure, { className: "close", type: "button", icon: "close", theme: this.props.theme, hideLabel: true, "aria-controls": bannerId, children: "Close notification" }))] })] }), this.props.children] }));
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
82
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js
CHANGED
|
@@ -8,6 +8,7 @@ import '../components/button-tile.wrapper.js';
|
|
|
8
8
|
import '../components/carousel.wrapper.js';
|
|
9
9
|
import '../components/checkbox-wrapper.wrapper.js';
|
|
10
10
|
import '../components/content-wrapper.wrapper.js';
|
|
11
|
+
import '../components/crest.wrapper.js';
|
|
11
12
|
import '../components/display.wrapper.js';
|
|
12
13
|
import '../components/divider.wrapper.js';
|
|
13
14
|
import '../components/fieldset.wrapper.js';
|
|
@@ -57,11 +58,12 @@ import '../components/text-list.wrapper.js';
|
|
|
57
58
|
import '../components/text-list-item.wrapper.js';
|
|
58
59
|
import '../components/textarea-wrapper.wrapper.js';
|
|
59
60
|
import '../components/toast.wrapper.js';
|
|
61
|
+
import '../components/wordmark.wrapper.js';
|
|
60
62
|
import { splitChildren } from '../../splitChildren.js';
|
|
61
63
|
import { Component } from 'react';
|
|
62
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
63
65
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
64
|
-
import { getLinkPureCss as getComponentCss$
|
|
66
|
+
import { getLinkPureCss as getComponentCss$C } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
65
67
|
import { hasVisibleIcon, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
66
68
|
|
|
67
69
|
class DSRLinkPure extends Component {
|
|
@@ -69,7 +71,7 @@ class DSRLinkPure extends Component {
|
|
|
69
71
|
splitChildren(this.props.children);
|
|
70
72
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
71
73
|
const hasIcon = hasVisibleIcon(this.props.icon, this.props.iconSource);
|
|
72
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
74
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$C(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)));
|
|
73
75
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
74
76
|
href: this.props.href,
|
|
75
77
|
target: this.props.target,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js
CHANGED
|
@@ -8,6 +8,7 @@ import '../components/button-tile.wrapper.js';
|
|
|
8
8
|
import '../components/carousel.wrapper.js';
|
|
9
9
|
import '../components/checkbox-wrapper.wrapper.js';
|
|
10
10
|
import '../components/content-wrapper.wrapper.js';
|
|
11
|
+
import '../components/crest.wrapper.js';
|
|
11
12
|
import '../components/display.wrapper.js';
|
|
12
13
|
import '../components/divider.wrapper.js';
|
|
13
14
|
import '../components/fieldset.wrapper.js';
|
|
@@ -57,11 +58,12 @@ import '../components/text-list.wrapper.js';
|
|
|
57
58
|
import '../components/text-list-item.wrapper.js';
|
|
58
59
|
import '../components/textarea-wrapper.wrapper.js';
|
|
59
60
|
import '../components/toast.wrapper.js';
|
|
61
|
+
import '../components/wordmark.wrapper.js';
|
|
60
62
|
import { splitChildren } from '../../splitChildren.js';
|
|
61
63
|
import { Component } from 'react';
|
|
62
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
63
65
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
64
|
-
import { getLinkCss as getComponentCss$
|
|
66
|
+
import { getLinkCss as getComponentCss$B } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
65
67
|
import { getLinkButtonThemeForIcon } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
66
68
|
|
|
67
69
|
/** @deprecated since v3.0.0, will be removed with next major release. Use `p-link` with corresponding social icon instead. */
|
|
@@ -69,7 +71,7 @@ class DSRLinkSocial extends Component {
|
|
|
69
71
|
render() {
|
|
70
72
|
splitChildren(this.props.children);
|
|
71
73
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
72
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
74
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$B(this.props.icon, this.props.iconSource, 'primary', this.props.hideLabel, !this.props.href, this.props.theme)));
|
|
73
75
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
74
76
|
href: this.props.href,
|
|
75
77
|
target: this.props.target,
|
|
@@ -8,6 +8,7 @@ import '../components/button-tile.wrapper.js';
|
|
|
8
8
|
import '../components/carousel.wrapper.js';
|
|
9
9
|
import '../components/checkbox-wrapper.wrapper.js';
|
|
10
10
|
import '../components/content-wrapper.wrapper.js';
|
|
11
|
+
import '../components/crest.wrapper.js';
|
|
11
12
|
import '../components/display.wrapper.js';
|
|
12
13
|
import '../components/divider.wrapper.js';
|
|
13
14
|
import '../components/fieldset.wrapper.js';
|
|
@@ -57,11 +58,12 @@ import '../components/text-list.wrapper.js';
|
|
|
57
58
|
import '../components/text-list-item.wrapper.js';
|
|
58
59
|
import '../components/textarea-wrapper.wrapper.js';
|
|
59
60
|
import '../components/toast.wrapper.js';
|
|
61
|
+
import '../components/wordmark.wrapper.js';
|
|
60
62
|
import { splitChildren } from '../../splitChildren.js';
|
|
61
63
|
import { Component } from 'react';
|
|
62
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
63
65
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
64
|
-
import { getLinkTileModelSignatureCss as getComponentCss$
|
|
66
|
+
import { getLinkTileModelSignatureCss as getComponentCss$A } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
65
67
|
|
|
66
68
|
class DSRLinkTileModelSignature extends Component {
|
|
67
69
|
render() {
|
|
@@ -85,7 +87,7 @@ class DSRLinkTileModelSignature extends Component {
|
|
|
85
87
|
tabIndex: -1,
|
|
86
88
|
'aria-hidden': 'true',
|
|
87
89
|
};
|
|
88
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
90
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$A(this.props.aspectRatio, this.props.weight, this.props.linkDirection, !!this.props.description)));
|
|
89
91
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className: "image-container", children: jsx("slot", {}) }), jsx(PModelSignature, { className: "model", theme: "dark", model: this.props.model }), jsxs("div", { className: "content", children: [jsx("a", { ...overlayLinkProps }), jsx(this.props.headingTag, { className: "heading", children: this.props.heading }), this.props.description && jsx("p", { className: "description", children: this.props.description }), jsxs("div", { className: "link-group", role: "group", children: [jsx("slot", { name: "primary" }), jsx("slot", { name: "secondary" })] })] })] })] }), manipulatedChildren] }));
|
|
90
92
|
}
|
|
91
93
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js
CHANGED
|
@@ -9,6 +9,7 @@ import '../components/button-tile.wrapper.js';
|
|
|
9
9
|
import '../components/carousel.wrapper.js';
|
|
10
10
|
import '../components/checkbox-wrapper.wrapper.js';
|
|
11
11
|
import '../components/content-wrapper.wrapper.js';
|
|
12
|
+
import '../components/crest.wrapper.js';
|
|
12
13
|
import '../components/display.wrapper.js';
|
|
13
14
|
import '../components/divider.wrapper.js';
|
|
14
15
|
import '../components/fieldset.wrapper.js';
|
|
@@ -58,10 +59,11 @@ import '../components/text-list.wrapper.js';
|
|
|
58
59
|
import '../components/text-list-item.wrapper.js';
|
|
59
60
|
import '../components/textarea-wrapper.wrapper.js';
|
|
60
61
|
import '../components/toast.wrapper.js';
|
|
62
|
+
import '../components/wordmark.wrapper.js';
|
|
61
63
|
import { splitChildren } from '../../splitChildren.js';
|
|
62
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
63
65
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
64
|
-
import { getLinkTileCss as getComponentCss$
|
|
66
|
+
import { getLinkTileCss as getComponentCss$z } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
65
67
|
|
|
66
68
|
class DSRLinkTile extends Component {
|
|
67
69
|
render() {
|
|
@@ -79,7 +81,7 @@ class DSRLinkTile extends Component {
|
|
|
79
81
|
};
|
|
80
82
|
const link = (createElement(PLink, { ...sharedLinkProps, ...linkProps, key: "link-or-button", className: "link-or-button" }, this.props.label));
|
|
81
83
|
const linkPure = (createElement(PLinkPure, { ...sharedLinkProps, ...linkProps, key: "link-or-button-pure", className: "link-or-button-pure", hideLabel: true, icon: "arrow-right" }, this.props.label));
|
|
82
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
84
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$z(this.props.aspectRatio, this.props.size, this.props.weight, // potentially breakpoint customizable, so we can't easily access the deprecation map
|
|
83
85
|
this.props.align, this.props.compact, this.props.gradient)));
|
|
84
86
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className: "image-container", children: jsx("slot", {}) }), jsxs("div", { className: "content", children: [jsx("a", { ...sharedLinkProps, className: "link-overlay", tabIndex: -1, "aria-hidden": "true" }), jsx("p", { children: this.props.description }), typeof this.props.compact === 'boolean' ? (this.props.compact ? linkPure : link) : [linkPure, link]] })] })] }), this.props.children] }));
|
|
85
87
|
}
|
|
@@ -8,6 +8,7 @@ import '../components/button-tile.wrapper.js';
|
|
|
8
8
|
import '../components/carousel.wrapper.js';
|
|
9
9
|
import '../components/checkbox-wrapper.wrapper.js';
|
|
10
10
|
import '../components/content-wrapper.wrapper.js';
|
|
11
|
+
import '../components/crest.wrapper.js';
|
|
11
12
|
import '../components/display.wrapper.js';
|
|
12
13
|
import '../components/divider.wrapper.js';
|
|
13
14
|
import '../components/fieldset.wrapper.js';
|
|
@@ -57,18 +58,19 @@ import '../components/text-list.wrapper.js';
|
|
|
57
58
|
import '../components/text-list-item.wrapper.js';
|
|
58
59
|
import '../components/textarea-wrapper.wrapper.js';
|
|
59
60
|
import '../components/toast.wrapper.js';
|
|
61
|
+
import '../components/wordmark.wrapper.js';
|
|
60
62
|
import { splitChildren } from '../../splitChildren.js';
|
|
61
63
|
import { Component } from 'react';
|
|
62
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
63
65
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
64
|
-
import { getLinkCss as getComponentCss$
|
|
66
|
+
import { getLinkCss as getComponentCss$B } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
65
67
|
import { parseAndGetAriaAttributes, hasVisibleIcon, getLinkButtonThemeForIcon } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
66
68
|
|
|
67
69
|
class DSRLink extends Component {
|
|
68
70
|
render() {
|
|
69
71
|
splitChildren(this.props.children);
|
|
70
72
|
const TagType = this.props.href === undefined ? 'span' : 'a';
|
|
71
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
73
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$B(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, !this.props.href, this.props.theme)));
|
|
72
74
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(TagType, { className: "root", ...(TagType === 'a' && {
|
|
73
75
|
href: this.props.href,
|
|
74
76
|
target: this.props.target,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js
CHANGED
|
@@ -2,9 +2,10 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.js';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
5
|
-
import { getMarqueCss as getComponentCss$
|
|
5
|
+
import { getMarqueCss as getComponentCss$y } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
6
6
|
import { getInnerManifest, buildSrcSet, cdnBaseUrl, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
7
7
|
|
|
8
|
+
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-wordmark" instead. */
|
|
8
9
|
class DSRMarque extends Component {
|
|
9
10
|
render() {
|
|
10
11
|
const innerManifest = getInnerManifest(this.props.trademark);
|
|
@@ -20,7 +21,7 @@ class DSRMarque extends Component {
|
|
|
20
21
|
jsx("source", { srcSet: buildSrcSet(innerManifest, this.props.size, 'webp'), type: "image/webp" }, "webp"),
|
|
21
22
|
jsx("source", { srcSet: buildSrcSet(innerManifest, this.props.size, 'png'), type: "image/png" }, "png"),
|
|
22
23
|
], jsx("img", { src: `${cdnBaseUrl}/${innerManifest.medium['2x'].png}`, alt: "Porsche" })] }));
|
|
23
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
24
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$y(this.props.size)));
|
|
24
25
|
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 })) })] }) }));
|
|
25
26
|
}
|
|
26
27
|
}
|
|
@@ -8,6 +8,7 @@ import '../components/button-tile.wrapper.js';
|
|
|
8
8
|
import '../components/carousel.wrapper.js';
|
|
9
9
|
import '../components/checkbox-wrapper.wrapper.js';
|
|
10
10
|
import '../components/content-wrapper.wrapper.js';
|
|
11
|
+
import '../components/crest.wrapper.js';
|
|
11
12
|
import '../components/display.wrapper.js';
|
|
12
13
|
import '../components/divider.wrapper.js';
|
|
13
14
|
import '../components/fieldset.wrapper.js';
|
|
@@ -57,11 +58,12 @@ import '../components/text-list.wrapper.js';
|
|
|
57
58
|
import '../components/text-list-item.wrapper.js';
|
|
58
59
|
import '../components/textarea-wrapper.wrapper.js';
|
|
59
60
|
import '../components/toast.wrapper.js';
|
|
61
|
+
import '../components/wordmark.wrapper.js';
|
|
60
62
|
import { splitChildren } from '../../splitChildren.js';
|
|
61
63
|
import { Component } from 'react';
|
|
62
64
|
import { minifyCss } from '../../minifyCss.js';
|
|
63
65
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.js';
|
|
64
|
-
import { getModalCss as getComponentCss$
|
|
66
|
+
import { getModalCss as getComponentCss$x } from '../../../../../../components/dist/styles/esm/styles-entry.js';
|
|
65
67
|
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.js';
|
|
66
68
|
|
|
67
69
|
class DSRModal extends Component {
|
|
@@ -73,7 +75,7 @@ class DSRModal extends Component {
|
|
|
73
75
|
if (this.props.open) ;
|
|
74
76
|
const hasHeader = !!this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0;
|
|
75
77
|
const hasDismissButton = this.props.disableCloseButton ? false : this.props.dismissButton;
|
|
76
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
78
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$x(this.props.open, this.props.fullscreen, hasDismissButton, hasHeader)));
|
|
77
79
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsxs("div", { className: "root", role: "dialog", ...parseAndGetAriaAttributes({
|
|
78
80
|
'aria-modal': true,
|
|
79
81
|
'aria-label': this.props.heading,
|