@porsche-design-system/components-react 3.7.0-rc.2 → 3.8.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 +125 -17
- package/cjs/lib/components/button-pure.wrapper.cjs +1 -1
- package/cjs/lib/components/carousel.wrapper.cjs +1 -1
- package/cjs/lib/components/display.wrapper.cjs +1 -1
- package/cjs/lib/components/flyout.wrapper.cjs +1 -1
- package/cjs/lib/components/heading.wrapper.cjs +1 -1
- package/cjs/lib/components/headline.wrapper.cjs +1 -1
- package/cjs/lib/components/link-pure.wrapper.cjs +1 -1
- package/cjs/lib/components/modal.wrapper.cjs +3 -3
- package/cjs/lib/components/switch.wrapper.cjs +1 -1
- package/cjs/lib/components/text.wrapper.cjs +1 -1
- package/esm/lib/components/button-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/button-pure.wrapper.mjs +1 -1
- package/esm/lib/components/carousel.wrapper.d.ts +1 -1
- package/esm/lib/components/carousel.wrapper.mjs +1 -1
- package/esm/lib/components/display.wrapper.d.ts +1 -1
- package/esm/lib/components/display.wrapper.mjs +1 -1
- package/esm/lib/components/flyout.wrapper.d.ts +1 -1
- package/esm/lib/components/flyout.wrapper.mjs +1 -1
- package/esm/lib/components/heading.wrapper.d.ts +1 -1
- package/esm/lib/components/heading.wrapper.mjs +1 -1
- package/esm/lib/components/headline.wrapper.d.ts +1 -1
- package/esm/lib/components/headline.wrapper.mjs +1 -1
- package/esm/lib/components/link-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/link-pure.wrapper.mjs +1 -1
- package/esm/lib/components/modal.wrapper.d.ts +9 -1
- package/esm/lib/components/modal.wrapper.mjs +3 -3
- package/esm/lib/components/switch.wrapper.d.ts +1 -1
- package/esm/lib/components/switch.wrapper.mjs +1 -1
- package/esm/lib/components/text.wrapper.d.ts +1 -1
- package/esm/lib/components/text.wrapper.mjs +1 -1
- package/esm/lib/types.d.ts +36 -28
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +3188 -3069
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +1129 -1262
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +4 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +9 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +5 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +5 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.cjs +5 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +3188 -3069
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +1130 -1264
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +10 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +5 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +5 -6
- 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/text-list-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +5 -1
- package/ssr/esm/lib/components/modal.wrapper.d.ts +9 -1
- package/ssr/esm/lib/dsr-components/popover.d.ts +2 -0
- package/ssr/esm/lib/types.d.ts +36 -28
|
@@ -5,7 +5,7 @@ import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.m
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRButtonPure } from '../dsr-components/button-pure.mjs';
|
|
7
7
|
|
|
8
|
-
const PButtonPure = forwardRef(({ active = false, alignLabel = '
|
|
8
|
+
const PButtonPure = forwardRef(({ active = false, alignLabel = 'end', aria, disabled = false, hideLabel = false, icon = 'arrow-right', iconSource, loading = false, size = 'small', stretch = false, theme = 'light', type = 'submit', weight = 'regular', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef();
|
|
10
10
|
const WebComponentTag = usePrefix('p-button-pure');
|
|
11
11
|
const propsToSync = [active, alignLabel, aria, disabled, hideLabel, icon, iconSource, loading, size, stretch, theme, type, weight];
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRCarousel } from '../dsr-components/carousel.mjs';
|
|
7
7
|
|
|
8
|
-
const PCarousel = forwardRef(({ activeSlideIndex = 0, alignHeader = '
|
|
8
|
+
const PCarousel = forwardRef(({ activeSlideIndex = 0, alignHeader = 'start', description, disablePagination, heading, intl, onCarouselChange, onUpdate, pagination = true, rewind = true, skipLinkTarget, slidesPerPage = 1, theme = 'light', width = 'basic', wrapContent, className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef();
|
|
10
10
|
useEventCallback(elementRef, 'carouselChange', onCarouselChange);
|
|
11
11
|
useEventCallback(elementRef, 'update', onUpdate);
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.m
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRDisplay } from '../dsr-components/display.mjs';
|
|
7
7
|
|
|
8
|
-
const PDisplay = forwardRef(({ align = '
|
|
8
|
+
const PDisplay = forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'large', tag, theme = 'light', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef();
|
|
10
10
|
const WebComponentTag = usePrefix('p-display');
|
|
11
11
|
const propsToSync = [align, color, ellipsis, size, tag, theme];
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRFlyout } from '../dsr-components/flyout.mjs';
|
|
7
7
|
|
|
8
|
-
const PFlyout = forwardRef(({ aria, onDismiss, open = false, position = '
|
|
8
|
+
const PFlyout = forwardRef(({ aria, onDismiss, open = false, position = 'end', theme = 'light', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef();
|
|
10
10
|
useEventCallback(elementRef, 'dismiss', onDismiss);
|
|
11
11
|
const WebComponentTag = usePrefix('p-flyout');
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.m
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRHeading } from '../dsr-components/heading.mjs';
|
|
7
7
|
|
|
8
|
-
const PHeading = forwardRef(({ align = '
|
|
8
|
+
const PHeading = forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'xx-large', tag, theme = 'light', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef();
|
|
10
10
|
const WebComponentTag = usePrefix('p-heading');
|
|
11
11
|
const propsToSync = [align, color, ellipsis, size, tag, theme];
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { syncRef } from '../../utils.mjs';
|
|
|
6
6
|
import { DSRHeadline } from '../dsr-components/headline.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-heading" instead. */
|
|
9
|
-
const PHeadline = forwardRef(({ align = '
|
|
9
|
+
const PHeadline = forwardRef(({ align = 'start', color = 'primary', ellipsis = false, tag, theme = 'light', variant = 'headline-1', className, children, ...rest }, ref) => {
|
|
10
10
|
const elementRef = useRef();
|
|
11
11
|
const WebComponentTag = usePrefix('p-headline');
|
|
12
12
|
const propsToSync = [align, color, ellipsis, tag, theme, variant];
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.m
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRLinkPure } from '../dsr-components/link-pure.mjs';
|
|
7
7
|
|
|
8
|
-
const PLinkPure = forwardRef(({ active = false, alignLabel = '
|
|
8
|
+
const PLinkPure = forwardRef(({ active = false, alignLabel = 'end', aria, download, hideLabel = false, href, icon = 'arrow-right', iconSource, rel, size = 'small', stretch = false, target = '_self', theme = 'light', underline = false, weight = 'regular', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef();
|
|
10
10
|
const WebComponentTag = usePrefix('p-link-pure');
|
|
11
11
|
const propsToSync = [active, alignLabel, aria, download, hideLabel, href, icon, iconSource, rel, size, stretch, target, theme, underline, weight];
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.mjs
CHANGED
|
@@ -5,15 +5,15 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRModal } from '../dsr-components/modal.mjs';
|
|
7
7
|
|
|
8
|
-
const PModal = forwardRef(({ aria, disableBackdropClick = false, disableCloseButton, dismissButton = true, fullscreen = false, heading, onClose, onDismiss, open = false, className, children, ...rest }, ref) => {
|
|
8
|
+
const PModal = forwardRef(({ aria, disableBackdropClick = false, disableCloseButton, dismissButton = true, fullscreen = false, heading, onClose, onDismiss, open = false, theme = 'light', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef();
|
|
10
10
|
useEventCallback(elementRef, 'close', onClose);
|
|
11
11
|
useEventCallback(elementRef, 'dismiss', onDismiss);
|
|
12
12
|
const WebComponentTag = usePrefix('p-modal');
|
|
13
|
-
const propsToSync = [aria, disableBackdropClick, disableCloseButton, dismissButton, fullscreen, heading, open];
|
|
13
|
+
const propsToSync = [aria, disableBackdropClick, disableCloseButton, dismissButton, fullscreen, heading, open, theme];
|
|
14
14
|
useBrowserLayoutEffect(() => {
|
|
15
15
|
const { current } = elementRef;
|
|
16
|
-
['aria', 'disableBackdropClick', 'disableCloseButton', 'dismissButton', 'fullscreen', 'heading', 'open'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
|
+
['aria', 'disableBackdropClick', 'disableCloseButton', 'dismissButton', 'fullscreen', 'heading', 'open', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
17
17
|
}, propsToSync);
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
if (!process.browser) {
|
|
@@ -24,7 +24,7 @@ const PModal = forwardRef(({ aria, disableBackdropClick = false, disableCloseBut
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
...(!process.browser
|
|
26
26
|
? {
|
|
27
|
-
children: (jsx(DSRModal, { aria, disableBackdropClick, disableCloseButton, dismissButton, fullscreen, heading, open, children })),
|
|
27
|
+
children: (jsx(DSRModal, { aria, disableBackdropClick, disableCloseButton, dismissButton, fullscreen, heading, open, theme, children })),
|
|
28
28
|
}
|
|
29
29
|
: {
|
|
30
30
|
children,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRSwitch } from '../dsr-components/switch.mjs';
|
|
7
7
|
|
|
8
|
-
const PSwitch = forwardRef(({ alignLabel = '
|
|
8
|
+
const PSwitch = forwardRef(({ alignLabel = 'end', checked = false, disabled = false, hideLabel = false, loading = false, onSwitchChange, onUpdate, stretch = false, theme = 'light', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef();
|
|
10
10
|
useEventCallback(elementRef, 'switchChange', onSwitchChange);
|
|
11
11
|
useEventCallback(elementRef, 'update', onUpdate);
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.m
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRText } from '../dsr-components/text.mjs';
|
|
7
7
|
|
|
8
|
-
const PText = forwardRef(({ align = '
|
|
8
|
+
const PText = forwardRef(({ align = 'start', color = 'primary', ellipsis = false, size = 'small', tag = 'p', theme = 'light', weight = 'regular', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef();
|
|
10
10
|
const WebComponentTag = usePrefix('p-text');
|
|
11
11
|
const propsToSync = [align, color, ellipsis, size, tag, theme, weight];
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs
CHANGED
|
@@ -84,6 +84,9 @@ class DSRCarousel extends Component {
|
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
87
|
+
const alignHeaderDeprecationMap = {
|
|
88
|
+
left: 'start',
|
|
89
|
+
};
|
|
87
90
|
const btnProps = {
|
|
88
91
|
className: 'btn',
|
|
89
92
|
type: 'button',
|
|
@@ -97,7 +100,7 @@ class DSRCarousel extends Component {
|
|
|
97
100
|
? typeof this.props.disablePagination === 'object'
|
|
98
101
|
? Object.fromEntries(Object.entries(this.props.disablePagination).map(([key, value]) => [key, !value]))
|
|
99
102
|
: !this.props.disablePagination
|
|
100
|
-
: this.props.pagination, isInfinitePagination(this.props.amountOfPages), this.props.alignHeader, this.props.theme)));
|
|
103
|
+
: this.props.pagination, isInfinitePagination(this.props.amountOfPages), (alignHeaderDeprecationMap[this.props.alignHeader] || this.props.alignHeader), this.props.theme)));
|
|
101
104
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("div", { className: "header", children: [this.props.heading ? jsx("h2", { id: "heading", children: this.props.heading }) : jsx("slot", { name: "heading" }), (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) &&
|
|
102
105
|
((this.props.description && jsx("p", { children: this.props.description })) || jsx("slot", { name: "description" })), jsxs("div", { className: "nav", children: [this.props.skipLinkTarget && (jsx(PLinkPure, { href: this.props.skipLinkTarget, theme: this.props.theme, icon: "arrow-last", className: "btn skip-link", alignLabel: "left", hideLabel: true, "aria-describedby": this.props.heading ? 'heading' : null, children: "Skip carousel entries" })), (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && [
|
|
103
106
|
jsx(PButtonPure, { ...btnProps, icon: "arrow-left" }),
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs
CHANGED
|
@@ -10,8 +10,12 @@ class DSRDisplay extends Component {
|
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
+
const alignDeprecationMap = {
|
|
14
|
+
left: 'start',
|
|
15
|
+
right: 'end',
|
|
16
|
+
};
|
|
13
17
|
const TagType = getDisplayTagType(null, this.props.size, this.props.tag);
|
|
14
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$S(this.props.size, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
|
|
18
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$S(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
|
|
15
19
|
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
20
|
}
|
|
17
21
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import '../components/accordion.wrapper.mjs';
|
|
3
3
|
import '../components/banner.wrapper.mjs';
|
|
4
4
|
import '../components/button.wrapper.mjs';
|
|
@@ -83,16 +83,22 @@ class DSRFlyout extends Component {
|
|
|
83
83
|
hasSubFooter;
|
|
84
84
|
render() {
|
|
85
85
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
86
|
+
const positionDeprecationMap = {
|
|
87
|
+
left: 'start',
|
|
88
|
+
right: 'end',
|
|
89
|
+
};
|
|
86
90
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
87
91
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
88
92
|
const hasSubFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sub-footer').length > 0;
|
|
89
|
-
const
|
|
90
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$M(this.props.open, this.props.position, hasHeader, hasFooter, hasSubFooter, this.props.theme)));
|
|
93
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$M(this.props.open, (positionDeprecationMap[this.props.position] || this.props.position), hasFooter, hasSubFooter, this.props.theme)));
|
|
91
94
|
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({
|
|
92
95
|
'aria-modal': true,
|
|
93
96
|
'aria-hidden': !this.props.open,
|
|
94
97
|
...parseAndGetAriaAttributes(this.props.aria),
|
|
95
|
-
}), tabIndex: -1,
|
|
98
|
+
}), tabIndex: -1,
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
100
|
+
/* @ts-ignore */
|
|
101
|
+
inert: this.props.open ? null : '', ...(hasSubFooter && { onScroll: this.props.onScroll }), children: [jsxs("div", { className: "header", children: [jsx(PButtonPure, { className: "dismiss", type: "button", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss flyout" }), hasHeader && jsx("slot", { name: "header" })] }), jsx("div", { className: "content", children: jsx("slot", {}) }), hasFooter && (jsx("div", { className: "footer", children: jsx("slot", { name: "footer" }) })), hasSubFooter && (jsx("div", { className: "sub-footer", children: jsx("slot", { name: "sub-footer" }) }))] }) })] }), this.props.children] }));
|
|
96
102
|
}
|
|
97
103
|
}
|
|
98
104
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs
CHANGED
|
@@ -10,8 +10,12 @@ class DSRHeading extends Component {
|
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
+
const alignDeprecationMap = {
|
|
14
|
+
left: 'start',
|
|
15
|
+
right: 'end',
|
|
16
|
+
};
|
|
13
17
|
const TagType = getHeadingTagType(null, this.props.size, this.props.tag);
|
|
14
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$J(this.props.size, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
|
|
18
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$J(this.props.size, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
|
|
15
19
|
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
20
|
}
|
|
17
21
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs
CHANGED
|
@@ -11,8 +11,12 @@ class DSRHeadline extends Component {
|
|
|
11
11
|
host;
|
|
12
12
|
render() {
|
|
13
13
|
splitChildren(this.props.children);
|
|
14
|
+
const alignDeprecationMap = {
|
|
15
|
+
left: 'start',
|
|
16
|
+
right: 'end',
|
|
17
|
+
};
|
|
14
18
|
const TagType = getHeadlineTagType(null, this.props.variant, this.props.tag);
|
|
15
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$I(this.props.variant, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
|
|
19
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$I(this.props.variant, (alignDeprecationMap[this.props.align] || this.props.align), this.props.color, this.props.ellipsis, this.props.theme)));
|
|
16
20
|
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] }));
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -93,7 +93,7 @@ class DSRLinkTileModelSignature extends Component {
|
|
|
93
93
|
'aria-hidden': 'true',
|
|
94
94
|
};
|
|
95
95
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$D(this.props.aspectRatio, this.props.weight, this.props.linkDirection, !!this.props.description)));
|
|
96
|
-
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(
|
|
96
|
+
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("div", { className: "signature", children: jsx(PModelSignature, { 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] }));
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs
CHANGED
|
@@ -87,13 +87,16 @@ class DSRModal extends Component {
|
|
|
87
87
|
const hasHeader = !!this.props.heading || namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0;
|
|
88
88
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
89
89
|
const hasDismissButton = this.props.disableCloseButton ? false : this.props.dismissButton;
|
|
90
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$A(this.props.open, this.props.fullscreen, hasDismissButton, hasHeader, hasFooter)));
|
|
90
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$A(this.props.open, this.props.fullscreen, hasDismissButton, hasHeader, hasFooter, this.props.theme)));
|
|
91
91
|
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({
|
|
92
92
|
'aria-modal': true,
|
|
93
93
|
'aria-label': this.props.heading,
|
|
94
94
|
'aria-hidden': !this.props.open,
|
|
95
95
|
...parseAndGetAriaAttributes(this.props.aria),
|
|
96
|
-
}), tabIndex: -1,
|
|
96
|
+
}), tabIndex: -1,
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
98
|
+
/* @ts-ignore */
|
|
99
|
+
inert: this.props.open ? null : '', children: [hasDismissButton && (jsx("div", { className: "controls", children: jsx(PButtonPure, { className: "dismiss", type: "button", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss modal" }) })), hasHeader && (jsx("div", { className: "header", children: this.props.heading ? jsx("h2", { children: this.props.heading }) : jsx("slot", { name: "heading" }) })), jsx("div", { className: "content", children: jsx("slot", {}) }), hasFooter && (jsx("div", { className: "footer", children: jsx("slot", { name: "footer" }) }))] }) })] }), this.props.children] }));
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs
CHANGED
|
@@ -87,7 +87,7 @@ class DSRPinCode extends Component {
|
|
|
87
87
|
const messageId = 'message';
|
|
88
88
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$v(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.isWithinForm, this.props.length, this.props.theme)));
|
|
89
89
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("label", { className: "label", htmlFor: currentInputId, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsx("span", { id: labelId, className: "label__text", children: this.props.label || jsx("slot", { name: "label" }) })), (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) && (jsx("span", { id: descriptionId, className: "label__text", children: this.props.description || jsx("slot", { name: "description" }) }))] }), jsxs("div", { className: "input-container", children: [this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, aria: { 'aria-label': 'Loading state' } })), this.props.isWithinForm && jsx("slot", { name: hiddenInputSlotName }), Array.from(Array(this.props.length), (_, index) => (jsx("input", { id: index === this.props.value.length ? currentInputId : null, 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-busy": this.props.loading ? 'true' : null, autoComplete: "one-time-code", pattern: "\\d*", inputMode: "numeric" // get numeric keyboard on mobile
|
|
90
|
-
,
|
|
90
|
+
, defaultValue: this.props.value[index] === ' ' ? null : this.props.value[index], disabled: this.props.disabled, required: this.props.required }, index)))] }), (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) && (jsx(StateMessage, { id: messageId, state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }))] })] }), this.props.children] }));
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs
CHANGED
|
@@ -68,7 +68,6 @@ import { Component } from 'react';
|
|
|
68
68
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
69
69
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
70
70
|
import { getPopoverCss as getComponentCss$u } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
71
|
-
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
72
71
|
|
|
73
72
|
class DSRPopover extends Component {
|
|
74
73
|
host;
|
|
@@ -76,13 +75,13 @@ class DSRPopover extends Component {
|
|
|
76
75
|
spacer;
|
|
77
76
|
popover;
|
|
78
77
|
button;
|
|
78
|
+
isNative = false;
|
|
79
|
+
parentTableElement;
|
|
79
80
|
render() {
|
|
80
81
|
splitChildren(this.props.children);
|
|
81
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$u(this.props.direction, 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')));
|
|
82
|
-
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", ...
|
|
83
|
-
|
|
84
|
-
'aria-expanded': this.props.open,
|
|
85
|
-
}), children: [jsx(PIcon, { className: "icon", name: "information", theme: this.props.theme }), jsx("span", { className: "label", children: "More information" })] }), this.props.open && (jsx("div", { className: "spacer", children: jsx("div", { className: "popover", children: this.props.description ? jsx("p", { children: this.props.description }) : jsx("slot", {}) }) }))] })] }), this.props.children] }));
|
|
82
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$u(this.props.direction, this.props.isNative, 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')));
|
|
83
|
+
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.isNative ? { popoverTarget: 'spacer' } : { ...(!this.props.isNative && { 'aria-expanded': this.props.open }),
|
|
84
|
+
}), children: [jsx(PIcon, { className: "icon", name: "information", theme: this.props.theme }), jsx("span", { className: "label", children: "More information" })] }), (this.props.open || this.props.isNative) && (jsx("div", { className: "spacer", ...(this.props.isNative && { 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] }));
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs
CHANGED
|
@@ -68,7 +68,7 @@ import { Component } from 'react';
|
|
|
68
68
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
69
69
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
70
70
|
import { getScrollerCss as getComponentCss$s } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
71
|
-
import { parseAndGetAriaAttributes, isScrollable } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
71
|
+
import { scrollAreaClass, parseAndGetAriaAttributes, isScrollable } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
72
72
|
|
|
73
73
|
class DSRScroller extends Component {
|
|
74
74
|
host;
|
|
@@ -87,7 +87,7 @@ class DSRScroller extends Component {
|
|
|
87
87
|
return (jsx("div", { className: direction === 'next' ? 'action-next' : 'action-prev', children: jsx("button", { type: "button", tabIndex: -1, "aria-hidden": "true", "aria-label": direction, children: jsx(PIcon, { className: "icon", name: direction === 'next' ? 'arrow-head-right' : 'arrow-head-left', theme: this.props.theme }) }) }, direction));
|
|
88
88
|
};
|
|
89
89
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$s(deprecationMap[this.props.gradientColorScheme] || this.props.gradientColor, this.isNextHidden, this.isPrevHidden, this.props.scrollIndicatorPosition || this.props.alignScrollIndicator, this.props.scrollbar, this.props.theme)));
|
|
90
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className:
|
|
90
|
+
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] }));
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -10,7 +10,7 @@ class DSRTextListItem extends Component {
|
|
|
10
10
|
render() {
|
|
11
11
|
splitChildren(this.props.children);
|
|
12
12
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$5()));
|
|
13
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("slot", {}) })] }), this.props.children] }));
|
|
13
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: jsx("span", { children: jsx("slot", {}) }) })] }), this.props.children] }));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -22,8 +22,12 @@ class DSRText extends Component {
|
|
|
22
22
|
thin: 'regular',
|
|
23
23
|
semibold: 'semi-bold',
|
|
24
24
|
};
|
|
25
|
+
const alignDeprecationMap = {
|
|
26
|
+
left: 'start',
|
|
27
|
+
right: 'end',
|
|
28
|
+
};
|
|
25
29
|
const TagType = getTextTagType(null, this.props.tag);
|
|
26
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$4(this.props.size, (weightDeprecationMap[this.props.weight] || this.props.weight), this.props.align, (colorDeprecationMap[this.props.color] || this.props.color), this.props.ellipsis, this.props.theme)));
|
|
30
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$4(this.props.size, (weightDeprecationMap[this.props.weight] || this.props.weight), (alignDeprecationMap[this.props.align] || this.props.align), (colorDeprecationMap[this.props.color] || this.props.color), this.props.ellipsis, this.props.theme)));
|
|
27
31
|
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] }));
|
|
28
32
|
}
|
|
29
33
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { SelectedAriaAttributes, ModalAriaAttribute, BreakpointCustomizable } from '../types';
|
|
2
|
+
import type { SelectedAriaAttributes, ModalAriaAttribute, BreakpointCustomizable, Theme } from '../types';
|
|
3
3
|
export type PModalProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Add ARIA attributes.
|
|
@@ -38,6 +38,10 @@ export type PModalProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
38
38
|
* If true, the modal is open.
|
|
39
39
|
*/
|
|
40
40
|
open: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Adapts the modal color depending on the theme.
|
|
43
|
+
*/
|
|
44
|
+
theme?: Theme;
|
|
41
45
|
};
|
|
42
46
|
export declare const PModal: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
43
47
|
/**
|
|
@@ -77,6 +81,10 @@ export declare const PModal: import("react").ForwardRefExoticComponent<Omit<HTML
|
|
|
77
81
|
* If true, the modal is open.
|
|
78
82
|
*/
|
|
79
83
|
open: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Adapts the modal color depending on the theme.
|
|
86
|
+
*/
|
|
87
|
+
theme?: Theme;
|
|
80
88
|
} & {
|
|
81
89
|
children?: import("react").ReactNode;
|
|
82
90
|
} & import("react").RefAttributes<HTMLElement>>;
|
package/ssr/esm/lib/types.d.ts
CHANGED
|
@@ -508,11 +508,21 @@ declare const SELECT_DROPDOWN_DIRECTIONS: readonly [
|
|
|
508
508
|
"auto"
|
|
509
509
|
];
|
|
510
510
|
export type SelectDropdownDirection = (typeof SELECT_DROPDOWN_DIRECTIONS)[number];
|
|
511
|
+
declare const TYPOGRAPHY_ALIGNS: readonly [
|
|
512
|
+
"start",
|
|
513
|
+
"center",
|
|
514
|
+
"end",
|
|
515
|
+
"left",
|
|
516
|
+
"right"
|
|
517
|
+
];
|
|
518
|
+
export type TypographyAlign = (typeof TYPOGRAPHY_ALIGNS)[number];
|
|
511
519
|
declare const ALIGN_LABELS: readonly [
|
|
520
|
+
"start",
|
|
521
|
+
"end",
|
|
512
522
|
"left",
|
|
513
523
|
"right"
|
|
514
524
|
];
|
|
515
|
-
export type AlignLabel = typeof ALIGN_LABELS[number];
|
|
525
|
+
export type AlignLabel = (typeof ALIGN_LABELS)[number];
|
|
516
526
|
declare const BUTTON_TYPES: readonly [
|
|
517
527
|
"button",
|
|
518
528
|
"submit",
|
|
@@ -534,12 +544,6 @@ declare const LINK_BUTTON_VARIANTS: readonly [
|
|
|
534
544
|
"tertiary"
|
|
535
545
|
];
|
|
536
546
|
export type LinkButtonVariant = typeof LINK_BUTTON_VARIANTS[number];
|
|
537
|
-
declare const TEXT_ALIGNS: readonly [
|
|
538
|
-
"left",
|
|
539
|
-
"center",
|
|
540
|
-
"right"
|
|
541
|
-
];
|
|
542
|
-
export type TextAlign = typeof TEXT_ALIGNS[number];
|
|
543
547
|
declare const TEXT_COLORS: readonly [
|
|
544
548
|
"primary",
|
|
545
549
|
"contrast-low",
|
|
@@ -557,7 +561,7 @@ declare const TEXT_COLORS: readonly [
|
|
|
557
561
|
"neutral-contrast-high",
|
|
558
562
|
"notification-neutral"
|
|
559
563
|
];
|
|
560
|
-
export type TextColor = typeof TEXT_COLORS[number];
|
|
564
|
+
export type TextColor = (typeof TEXT_COLORS)[number];
|
|
561
565
|
declare const TEXT_SIZES: readonly [
|
|
562
566
|
"xx-small",
|
|
563
567
|
"x-small",
|
|
@@ -567,7 +571,7 @@ declare const TEXT_SIZES: readonly [
|
|
|
567
571
|
"x-large",
|
|
568
572
|
"inherit"
|
|
569
573
|
];
|
|
570
|
-
export type TextSize = typeof TEXT_SIZES[number];
|
|
574
|
+
export type TextSize = (typeof TEXT_SIZES)[number];
|
|
571
575
|
declare const TEXT_WEIGHTS: readonly [
|
|
572
576
|
"regular",
|
|
573
577
|
"semi-bold",
|
|
@@ -575,7 +579,7 @@ declare const TEXT_WEIGHTS: readonly [
|
|
|
575
579
|
"thin",
|
|
576
580
|
"semibold"
|
|
577
581
|
];
|
|
578
|
-
export type TextWeight = typeof TEXT_WEIGHTS[number];
|
|
582
|
+
export type TextWeight = (typeof TEXT_WEIGHTS)[number];
|
|
579
583
|
declare const LINK_TARGETS: readonly [
|
|
580
584
|
"_self",
|
|
581
585
|
"_blank",
|
|
@@ -637,8 +641,9 @@ declare const CAROUSEL_WIDTHS: readonly [
|
|
|
637
641
|
];
|
|
638
642
|
export type CarouselWidth = (typeof CAROUSEL_WIDTHS)[number];
|
|
639
643
|
declare const CAROUSEL_ALIGN_HEADERS: readonly [
|
|
640
|
-
"
|
|
641
|
-
"center"
|
|
644
|
+
"start",
|
|
645
|
+
"center",
|
|
646
|
+
"left"
|
|
642
647
|
];
|
|
643
648
|
export type CarouselAlignHeader = (typeof CAROUSEL_ALIGN_HEADERS)[number];
|
|
644
649
|
export type CarouselInternationalization = Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | string;
|
|
@@ -683,7 +688,7 @@ declare const DISPLAY_COLORS: readonly [
|
|
|
683
688
|
"inherit"
|
|
684
689
|
];
|
|
685
690
|
export type DisplayColor = (typeof DISPLAY_COLORS)[number];
|
|
686
|
-
export type DisplayAlign =
|
|
691
|
+
export type DisplayAlign = TypographyAlign;
|
|
687
692
|
declare const DIVIDER_COLORS: readonly [
|
|
688
693
|
"contrast-low",
|
|
689
694
|
"contrast-medium",
|
|
@@ -794,6 +799,8 @@ declare const FLEX_ITEM_FLEXS: readonly [
|
|
|
794
799
|
];
|
|
795
800
|
export type FlexItemFlex = typeof FLEX_ITEM_FLEXS[number];
|
|
796
801
|
declare const FLYOUT_POSITIONS: readonly [
|
|
802
|
+
"start",
|
|
803
|
+
"end",
|
|
797
804
|
"left",
|
|
798
805
|
"right"
|
|
799
806
|
];
|
|
@@ -864,7 +871,7 @@ declare const HEADING_COLORS: readonly [
|
|
|
864
871
|
"inherit"
|
|
865
872
|
];
|
|
866
873
|
export type HeadingColor = (typeof HEADING_COLORS)[number];
|
|
867
|
-
export type HeadingAlign =
|
|
874
|
+
export type HeadingAlign = TypographyAlign;
|
|
868
875
|
declare const HEADLINE_VARIANTS: readonly [
|
|
869
876
|
"large-title",
|
|
870
877
|
"headline-1",
|
|
@@ -891,7 +898,7 @@ declare const HEADLINE_COLORS: readonly [
|
|
|
891
898
|
"inherit"
|
|
892
899
|
];
|
|
893
900
|
export type HeadlineColor = (typeof HEADLINE_COLORS)[number];
|
|
894
|
-
export type HeadlineAlign =
|
|
901
|
+
export type HeadlineAlign = TypographyAlign;
|
|
895
902
|
declare const ICON_ARIA_ATTRIBUTES: readonly [
|
|
896
903
|
"aria-label"
|
|
897
904
|
];
|
|
@@ -970,6 +977,18 @@ export type LinkTileModelSignatureHeadingTag = (typeof LINK_TILE_MODEL_SIGNATURE
|
|
|
970
977
|
export type LinkTileModelSignatureWeight = TileWeight;
|
|
971
978
|
export type LinkTileModelSignatureAspectRatio = TileAspectRatio;
|
|
972
979
|
export type LinkTileModelSignatureLinkDirection = GroupDirection;
|
|
980
|
+
declare const MODEL_SIGNATURES_MANIFEST: {
|
|
981
|
+
"718": string;
|
|
982
|
+
"911": string;
|
|
983
|
+
boxster: string;
|
|
984
|
+
cayenne: string;
|
|
985
|
+
cayman: string;
|
|
986
|
+
macan: string;
|
|
987
|
+
panamera: string;
|
|
988
|
+
taycan: string;
|
|
989
|
+
"turbo-s": string;
|
|
990
|
+
turbo: string;
|
|
991
|
+
};
|
|
973
992
|
declare const MARQUE_VARIANTS: readonly [
|
|
974
993
|
"75-years",
|
|
975
994
|
"default"
|
|
@@ -987,18 +1006,6 @@ declare const MODAL_ARIA_ATTRIBUTES: readonly [
|
|
|
987
1006
|
"aria-label"
|
|
988
1007
|
];
|
|
989
1008
|
export type ModalAriaAttribute = (typeof MODAL_ARIA_ATTRIBUTES)[number];
|
|
990
|
-
declare const MODEL_SIGNATURES_MANIFEST: {
|
|
991
|
-
"718": string;
|
|
992
|
-
"911": string;
|
|
993
|
-
boxster: string;
|
|
994
|
-
cayenne: string;
|
|
995
|
-
cayman: string;
|
|
996
|
-
macan: string;
|
|
997
|
-
panamera: string;
|
|
998
|
-
taycan: string;
|
|
999
|
-
"turbo-s": string;
|
|
1000
|
-
turbo: string;
|
|
1001
|
-
};
|
|
1002
1009
|
declare const MODEL_SIGNATURE_SIZES: readonly [
|
|
1003
1010
|
"small",
|
|
1004
1011
|
"inherit"
|
|
@@ -1171,7 +1178,8 @@ declare const TEXT_TAGS: readonly [
|
|
|
1171
1178
|
"time",
|
|
1172
1179
|
"legend"
|
|
1173
1180
|
];
|
|
1174
|
-
export type TextTag = typeof TEXT_TAGS[number];
|
|
1181
|
+
export type TextTag = (typeof TEXT_TAGS)[number];
|
|
1182
|
+
export type TextAlign = TypographyAlign;
|
|
1175
1183
|
declare const UNIT_POSITIONS: readonly [
|
|
1176
1184
|
"prefix",
|
|
1177
1185
|
"suffix"
|