@porsche-design-system/components-react 3.0.0-rc.2 → 3.0.0-rc.3
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 +20 -2
- package/lib/components/accordion.wrapper.d.ts +2 -2
- package/lib/components/banner.wrapper.d.ts +2 -2
- package/lib/components/button-group.wrapper.d.ts +2 -2
- package/lib/components/button-pure.wrapper.d.ts +2 -2
- package/lib/components/button-tile.wrapper.d.ts +2 -2
- package/lib/components/button.wrapper.d.ts +2 -2
- package/lib/components/carousel.wrapper.d.ts +2 -2
- package/lib/components/checkbox-wrapper.wrapper.d.ts +2 -2
- package/lib/components/content-wrapper.wrapper.d.ts +2 -2
- package/lib/components/crest.wrapper.d.ts +2 -2
- package/lib/components/display.wrapper.d.ts +2 -2
- package/lib/components/divider.wrapper.d.ts +2 -2
- package/lib/components/fieldset-wrapper.wrapper.d.ts +2 -2
- package/lib/components/fieldset.wrapper.d.ts +2 -2
- package/lib/components/flex-item.wrapper.d.ts +2 -2
- package/lib/components/flex.wrapper.d.ts +2 -2
- package/lib/components/grid-item.wrapper.d.ts +2 -2
- package/lib/components/grid.wrapper.d.ts +2 -2
- package/lib/components/heading.wrapper.d.ts +2 -2
- package/lib/components/headline.wrapper.d.ts +2 -2
- package/lib/components/icon.wrapper.d.ts +2 -2
- package/lib/components/inline-notification.wrapper.d.ts +2 -2
- package/lib/components/link-pure.wrapper.d.ts +2 -2
- package/lib/components/link-social.wrapper.d.ts +2 -2
- package/lib/components/link-tile-model-signature.wrapper.d.ts +2 -2
- package/lib/components/link-tile.wrapper.d.ts +2 -2
- package/lib/components/link.wrapper.d.ts +2 -2
- package/lib/components/marque.wrapper.d.ts +2 -2
- package/lib/components/modal.wrapper.d.ts +2 -2
- package/lib/components/model-signature.wrapper.d.ts +2 -2
- package/lib/components/pagination.wrapper.d.ts +2 -2
- package/lib/components/popover.wrapper.d.ts +2 -2
- package/lib/components/radio-button-wrapper.wrapper.d.ts +2 -2
- package/lib/components/scroller.wrapper.d.ts +2 -2
- package/lib/components/segmented-control-item.wrapper.d.ts +2 -2
- package/lib/components/segmented-control.wrapper.d.ts +2 -2
- package/lib/components/select-wrapper.wrapper.d.ts +2 -2
- package/lib/components/spinner.wrapper.d.ts +2 -2
- package/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/lib/components/switch.wrapper.d.ts +2 -2
- package/lib/components/table-body.wrapper.d.ts +2 -2
- package/lib/components/table-cell.wrapper.d.ts +2 -2
- package/lib/components/table-head-cell.wrapper.d.ts +2 -2
- package/lib/components/table-head-row.wrapper.d.ts +2 -2
- package/lib/components/table-head.wrapper.d.ts +2 -2
- package/lib/components/table-row.wrapper.d.ts +2 -2
- package/lib/components/table.wrapper.d.ts +2 -2
- package/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/lib/components/tabs.wrapper.d.ts +2 -2
- package/lib/components/tag-dismissible.wrapper.d.ts +2 -2
- package/lib/components/tag.wrapper.d.ts +2 -2
- package/lib/components/text-field-wrapper.wrapper.d.ts +2 -2
- package/lib/components/text-list-item.wrapper.d.ts +2 -2
- package/lib/components/text-list.wrapper.d.ts +2 -2
- package/lib/components/text.wrapper.d.ts +2 -2
- package/lib/components/textarea-wrapper.wrapper.d.ts +2 -2
- package/lib/components/toast.wrapper.d.ts +2 -2
- package/lib/components/wordmark.wrapper.d.ts +2 -2
- package/package.json +2 -2
- package/ssr/components/dist/styles/esm/styles-entry.js +23 -11
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +23 -11
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +1 -1
- package/ssr/lib/components/accordion.wrapper.d.ts +2 -2
- package/ssr/lib/components/banner.wrapper.d.ts +2 -2
- package/ssr/lib/components/button-group.wrapper.d.ts +2 -2
- package/ssr/lib/components/button-pure.wrapper.d.ts +2 -2
- package/ssr/lib/components/button-tile.wrapper.d.ts +2 -2
- package/ssr/lib/components/button.wrapper.d.ts +2 -2
- package/ssr/lib/components/carousel.wrapper.d.ts +2 -2
- package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/content-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/crest.wrapper.d.ts +2 -2
- package/ssr/lib/components/display.wrapper.d.ts +2 -2
- package/ssr/lib/components/divider.wrapper.d.ts +2 -2
- package/ssr/lib/components/fieldset-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/fieldset.wrapper.d.ts +2 -2
- package/ssr/lib/components/flex-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/flex.wrapper.d.ts +2 -2
- package/ssr/lib/components/grid-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/grid.wrapper.d.ts +2 -2
- package/ssr/lib/components/heading.wrapper.d.ts +2 -2
- package/ssr/lib/components/headline.wrapper.d.ts +2 -2
- package/ssr/lib/components/icon.wrapper.d.ts +2 -2
- package/ssr/lib/components/inline-notification.wrapper.d.ts +2 -2
- package/ssr/lib/components/link-pure.wrapper.d.ts +2 -2
- package/ssr/lib/components/link-social.wrapper.d.ts +2 -2
- package/ssr/lib/components/link-tile-model-signature.wrapper.d.ts +2 -2
- package/ssr/lib/components/link-tile.wrapper.d.ts +2 -2
- package/ssr/lib/components/link.wrapper.d.ts +2 -2
- package/ssr/lib/components/marque.wrapper.d.ts +2 -2
- package/ssr/lib/components/modal.wrapper.d.ts +2 -2
- package/ssr/lib/components/model-signature.wrapper.d.ts +2 -2
- package/ssr/lib/components/pagination.wrapper.d.ts +2 -2
- package/ssr/lib/components/popover.wrapper.d.ts +2 -2
- package/ssr/lib/components/radio-button-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/scroller.wrapper.d.ts +2 -2
- package/ssr/lib/components/segmented-control-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/segmented-control.wrapper.d.ts +2 -2
- package/ssr/lib/components/select-wrapper-dropdown.wrapper.d.ts +2 -2
- package/ssr/lib/components/select-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/spinner.wrapper.d.ts +2 -2
- package/ssr/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/ssr/lib/components/switch.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-body.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-cell.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-head-cell.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-head-row.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-head.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-row.wrapper.d.ts +2 -2
- package/ssr/lib/components/table.wrapper.d.ts +2 -2
- package/ssr/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/ssr/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/tabs.wrapper.d.ts +2 -2
- package/ssr/lib/components/tag-dismissible.wrapper.d.ts +2 -2
- package/ssr/lib/components/tag.wrapper.d.ts +2 -2
- package/ssr/lib/components/text-field-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/text-list-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/text-list.wrapper.d.ts +2 -2
- package/ssr/lib/components/text.wrapper.d.ts +2 -2
- package/ssr/lib/components/textarea-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/toast.wrapper.d.ts +2 -2
- package/ssr/lib/components/wordmark.wrapper.d.ts +2 -2
|
@@ -48,11 +48,11 @@ const borderWidthBase = '2px';
|
|
|
48
48
|
const _dropShadowBackgroundColor = 'rgba(0, 0, 0, 0.16)';
|
|
49
49
|
|
|
50
50
|
const dropShadowLowStyle = {
|
|
51
|
-
|
|
51
|
+
boxShadow: `0px 3px 8px ${_dropShadowBackgroundColor}`, // filter: drop-shadow() causes visual glitches in Firefox in combination with frostedGlassStyle
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
const dropShadowHighStyle = {
|
|
55
|
-
|
|
55
|
+
boxShadow: `0px 8px 40px ${_dropShadowBackgroundColor}`, // filter: drop-shadow() causes visual glitches in Firefox in combination with frostedGlassStyle
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
const themeLightStateFocus = '#1A44EA';
|
|
@@ -3922,7 +3922,7 @@ const getComponentCss$Y = (size, compact, open, theme) => {
|
|
|
3922
3922
|
})), hostHiddenStyles)),
|
|
3923
3923
|
button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', justifyContent: 'space-between', width: '100%', textDecoration: 'none', border: 0, outline: 0, gap: '24px', background: 'transparent', cursor: 'pointer', textAlign: 'left', color: primaryColor }, textSmallStyle), { fontWeight: fontWeightSemiBold }), buildResponsiveStyles(size, (s) => ({
|
|
3924
3924
|
fontSize: s === 'medium' ? fontSizeTextMedium : fontSizeTextSmall,
|
|
3925
|
-
padding: `${compact ? '4px' : s === 'medium' ? '20px' : '
|
|
3925
|
+
padding: `${compact ? '4px' : s === 'medium' ? '20px' : '15px'} 0`,
|
|
3926
3926
|
}))), mergeDeep({
|
|
3927
3927
|
'&::before': Object.assign({ content: '""', position: 'absolute', borderRadius: borderRadiusSmall, left: '-4px', right: '-4px' }, (compact
|
|
3928
3928
|
? {
|
|
@@ -3948,11 +3948,16 @@ const getComponentCss$Y = (size, compact, open, theme) => {
|
|
|
3948
3948
|
},
|
|
3949
3949
|
heading: {
|
|
3950
3950
|
margin: 0,
|
|
3951
|
-
|
|
3951
|
+
},
|
|
3952
|
+
'icon-container': {
|
|
3953
|
+
height: fontLineHeight,
|
|
3954
|
+
display: 'flex',
|
|
3955
|
+
alignItems: 'center',
|
|
3952
3956
|
},
|
|
3953
3957
|
icon: {
|
|
3954
3958
|
width: fontLineHeight,
|
|
3955
3959
|
height: fontLineHeight,
|
|
3960
|
+
fontSize: fontSizeTextXXSmall,
|
|
3956
3961
|
transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
|
|
3957
3962
|
transition: getTransition('transform'),
|
|
3958
3963
|
},
|
|
@@ -3991,24 +3996,25 @@ const ANIMATION_DURATION$1 = 600;
|
|
|
3991
3996
|
const duration$1 = `var(${cssVariableAnimationDuration},${ANIMATION_DURATION$1}ms)`;
|
|
3992
3997
|
const easeInQuad$1 = 'cubic-bezier(0.45,0,0.55,1)';
|
|
3993
3998
|
const easeOutQuad$1 = 'cubic-bezier(0.5,1,0.89,1)';
|
|
3999
|
+
const topBottomFallback = '56px';
|
|
3994
4000
|
const getComponentCss$X = (isOpen) => {
|
|
3995
4001
|
return getCss({
|
|
3996
4002
|
'@global': {
|
|
3997
|
-
':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
4003
|
+
':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ position: 'fixed', bottom: `var(${cssVariableBottom},${topBottomFallback})`, left: gridExtendedOffsetBase, right: gridExtendedOffsetBase, margin: 0, padding: 0, width: 'auto', maxWidth: '100%', zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})` }, dropShadowHighStyle), { borderRadius: borderRadiusSmall }), (isOpen
|
|
3998
4004
|
? {
|
|
3999
4005
|
opacity: 1,
|
|
4000
4006
|
visibility: 'inherit',
|
|
4001
4007
|
transform: 'translate3d(0,0,0)',
|
|
4002
|
-
transition: `opacity ${duration$1} ${easeInQuad$1},
|
|
4008
|
+
transition: `opacity ${duration$1} ${easeInQuad$1},transform ${duration$1} ${easeInQuad$1}`,
|
|
4003
4009
|
}
|
|
4004
4010
|
: {
|
|
4005
4011
|
opacity: 0,
|
|
4006
4012
|
visibility: 'hidden',
|
|
4007
|
-
transform: `translate3d(0,calc(var(${cssVariableBottom}) + 100%),0)`,
|
|
4013
|
+
transform: `translate3d(0,calc(var(${cssVariableBottom},${topBottomFallback}) + 100%),0)`,
|
|
4008
4014
|
'&(.hydrated),&(.ssr)': {
|
|
4009
|
-
transition: `visibility 0s linear ${duration$1},
|
|
4015
|
+
transition: `visibility 0s linear ${duration$1},opacity ${duration$1} ${easeOutQuad$1},transform ${duration$1} ${easeOutQuad$1}`,
|
|
4010
4016
|
},
|
|
4011
|
-
})), { [getMediaQueryMin('s')]: Object.assign({ top: `var(${cssVariableTop})`, bottom: 'auto', left: gridExtendedOffsetS, right: gridExtendedOffsetS }, (!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop})),0)` })), [getMediaQueryMin('xxl')]: {
|
|
4017
|
+
})), { [getMediaQueryMin('s')]: Object.assign({ top: `var(${cssVariableTop},${topBottomFallback})`, bottom: 'auto', left: gridExtendedOffsetS, right: gridExtendedOffsetS }, (!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop},${topBottomFallback})),0)` })), [getMediaQueryMin('xxl')]: {
|
|
4012
4018
|
left: gridExtendedOffsetXXL,
|
|
4013
4019
|
right: gridExtendedOffsetXXL,
|
|
4014
4020
|
} }), hostHiddenStyles)),
|
|
@@ -4904,7 +4910,7 @@ const getComponentCss$E = (color, size, theme) => {
|
|
|
4904
4910
|
const isSizeInherit = size === 'inherit';
|
|
4905
4911
|
const isDark = isThemeDark(theme);
|
|
4906
4912
|
return getCss({
|
|
4907
|
-
'@global': Object.assign({ ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)), img: Object.assign(Object.assign({ display: 'block', margin: 0, padding: 0 }, (!isColorInherit && Object.assign(Object.assign({ filter: filter[theme][color] }, (isHighContrastMode &&
|
|
4913
|
+
'@global': Object.assign({ ':host': Object.assign({ display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(hostHiddenStyles)), img: Object.assign(Object.assign({ display: 'block', margin: 0, padding: 0, pointerEvents: 'none' }, (!isColorInherit && Object.assign(Object.assign({ filter: filter[theme][color] }, (isHighContrastMode &&
|
|
4908
4914
|
getSchemedHighContrastMediaQuery({
|
|
4909
4915
|
filter: filter.light[color],
|
|
4910
4916
|
}, {
|
|
@@ -6489,7 +6495,13 @@ const getComponentCss$1 = () => {
|
|
|
6489
6495
|
const getComponentCss = (size, theme) => {
|
|
6490
6496
|
return getCss({
|
|
6491
6497
|
'@global': {
|
|
6492
|
-
':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, maxWidth: '100%', maxHeight: '100%', boxSizing: 'content-box' }, (
|
|
6498
|
+
':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, maxWidth: '100%', maxHeight: '100%', boxSizing: 'content-box' }, (size !== 'inherit' && {
|
|
6499
|
+
height: 'clamp(0.63rem, 0.42vw + 0.5rem, 1rem)',
|
|
6500
|
+
// workaround for Safari to optimize image rendering
|
|
6501
|
+
'@supports (height: round(down, 1px, 1px))': {
|
|
6502
|
+
height: 'round(down, clamp(0.63rem, 0.42vw + 0.5rem, 1rem), 1px)',
|
|
6503
|
+
},
|
|
6504
|
+
})), hostHiddenStyles))),
|
|
6493
6505
|
'a, svg': {
|
|
6494
6506
|
display: 'block',
|
|
6495
6507
|
maxWidth: '100%',
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js
CHANGED
|
@@ -72,7 +72,7 @@ class DSRAccordion extends Component {
|
|
|
72
72
|
const contentId = 'accordion-panel';
|
|
73
73
|
const Heading = this.props.tag;
|
|
74
74
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Y(this.props.size, this.props.compact, this.props.open, this.props.theme)));
|
|
75
|
-
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(Heading, { className: "heading", children: jsxs("button", { id: buttonId, type: "button", "aria-expanded": this.props.open ? 'true' : 'false', "aria-controls": contentId, children: [this.props.heading || jsx("slot", { name: "heading" }), jsx(PIcon, { className: "icon", name: this.props.open ? 'minus' : 'plus', theme: this.props.theme, size: "
|
|
75
|
+
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsx(Heading, { className: "heading", children: jsxs("button", { id: buttonId, type: "button", "aria-expanded": this.props.open ? 'true' : 'false', "aria-controls": contentId, children: [this.props.heading || jsx("slot", { name: "heading" }), jsx("span", { className: "icon-container", children: jsx(PIcon, { className: "icon", name: this.props.open ? 'minus' : 'plus', theme: this.props.theme, size: "xx-small", "aria-hidden": "true" }) })] }) }), jsx("div", { id: contentId, className: "collapsible", role: "region", "aria-labelledby": buttonId, children: jsx("div", { children: jsx("slot", {}) }) })] })] }), this.props.children] }));
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -23,8 +23,8 @@ class DSRSelectWrapperDropdown extends Component {
|
|
|
23
23
|
const buttonId = 'value';
|
|
24
24
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$o(this.props.direction === 'auto' ? 'down' : this.props.direction, this.isOpen, this.props.state, this.props.disabled, this.props.filter, this.props.theme)));
|
|
25
25
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.filter ? ([
|
|
26
|
-
jsx("input", { type: "text", role: "combobox", disabled: this.props.disabled, placeholder: ((_a = getSelectedOptionMap(this.optionMaps)) === null || _a === void 0 ? void 0 : _a.value) || null, autoComplete: "off",
|
|
27
|
-
jsx("span", {}),
|
|
26
|
+
jsx("input", { type: "text", role: "combobox", disabled: this.props.disabled, placeholder: ((_a = getSelectedOptionMap(this.optionMaps)) === null || _a === void 0 ? void 0 : _a.value) || null, autoComplete: "off", defaultValue: this.searchString, ...getFilterInputAriaAttributes(this.isOpen, this.props.required, labelId, descriptionId, dropdownId, getHighlightedOptionMapIndex(this.optionMaps)) }, "input"),
|
|
27
|
+
jsx("span", {}, "span"),
|
|
28
28
|
]) : (jsx("button", { type: "button", role: "combobox", id: buttonId, disabled: this.props.disabled, ...getSelectWrapperDropdownButtonAriaAttributes(this.isOpen, labelId, descriptionId, dropdownId, getHighlightedOptionMapIndex(this.optionMaps)) })) })] }) }));
|
|
29
29
|
}
|
|
30
30
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js
CHANGED
|
@@ -8,7 +8,7 @@ import { parseAndGetAriaAttributes } from '../../../../../../components/dist/uti
|
|
|
8
8
|
class DSRWordmark extends Component {
|
|
9
9
|
render() {
|
|
10
10
|
// optimized with SVGO, see docs in assets folder
|
|
11
|
-
const svg = (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
11
|
+
const svg = (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 4500 300", children: [jsx("title", { children: "Porsche" }), jsx("path", { d: "M502 221c48.1 0 74-25.9 74-74V74c0-48.1-25.9-74-74-74H0v300h68v-79h434zm6-143v65c0 7.8-4.2 12-12 12H68V66h428c7.8 0 12 4.2 12 12zm228 222c-48.1 0-74-25.9-74-74V74c0-48.1 25.9-74 74-74h417c48.1 0 74 25.9 74 74v152c0 48.1-25.9 74-74 74H736zm411-66c7.8 0 12-4.2 12-12V78c0-7.8-4.2-12-12-12H742c-7.8 0-12 4.2-12 12v144c0 7.8 4.2 12 12 12h405zm675-36c39.844 16.757 67.853 56.1 68 102h-68c0-54-25-79-79-79h-361v79h-68V0h502c48.1 0 74 25.9 74 74v50.14c0 46.06-23.75 71.76-68 73.86zm-12-43c7.8 0 12-4.2 12-12V78c0-7.8-4.2-12-12-12h-428v89h428zm162-81c0-48.1 25.9-74 74-74h492v56h-486c-7.8 0-12 4.2-12 12v42c0 7.8 4.2 12 12 12h422c48.1 0 74 25.9 74 74v30c0 48.1-25.9 74-74 74h-492v-56h486c7.8 0 12-4.2 12-12v-42c0-7.8-4.2-12-12-12h-422c-48.1 0-74-25.9-74-74V74zm661 0c0-48.1 25.9-74 74-74h480v66h-474c-7.8 0-12 4.2-12 12v144c0 7.8 4.2 12 12 12h474v66h-480c-48.1 0-74-25.9-74-74V74zM3817 0v300h-68V183h-407v117h-68V0h68v117h407V0h68zm156 56v66h527v56h-527v66h527v56h-595V0h595v56h-527z" })] }));
|
|
12
12
|
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss(this.props.size, this.props.theme)));
|
|
13
13
|
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 ? (svg) : (jsx("a", { href: this.props.href, target: this.props.target, ...parseAndGetAriaAttributes(this.props.aria), children: svg })) })] }) }));
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { AccordionUpdateEvent, BreakpointCustomizable, AccordionSize, AccordionTag, Theme } from '../types';
|
|
3
|
-
export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
6
6
|
*/
|
|
@@ -34,7 +34,7 @@ export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
34
34
|
*/
|
|
35
35
|
theme?: Theme;
|
|
36
36
|
};
|
|
37
|
-
export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
37
|
+
export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
38
38
|
/**
|
|
39
39
|
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
40
40
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BannerState, Theme, BannerWidth } from '../types';
|
|
3
|
-
export type PBannerProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PBannerProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Description of the banner.
|
|
6
6
|
*/
|
|
@@ -39,7 +39,7 @@ export type PBannerProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
39
39
|
*/
|
|
40
40
|
width?: BannerWidth;
|
|
41
41
|
};
|
|
42
|
-
export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
42
|
+
export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
43
43
|
/**
|
|
44
44
|
* Description of the banner.
|
|
45
45
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, ButtonGroupDirection } from '../types';
|
|
3
|
-
export type PButtonGroupProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PButtonGroupProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines the direction of the main and cross axis. The default is ’{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint ‘xs’. You always need to provide a base value when using breakpoints.
|
|
6
6
|
*/
|
|
7
7
|
direction?: BreakpointCustomizable<ButtonGroupDirection>;
|
|
8
8
|
};
|
|
9
|
-
export declare const PButtonGroup: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
9
|
+
export declare const PButtonGroup: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
10
10
|
/**
|
|
11
11
|
* Defines the direction of the main and cross axis. The default is ’{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint ‘xs’. You always need to provide a base value when using breakpoints.
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureIcon, ButtonPureSize, Theme, ButtonPureType, ButtonPureWeight } from '../types';
|
|
3
|
-
export type PButtonPureProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PButtonPureProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Display button in active state.
|
|
6
6
|
*/
|
|
@@ -55,7 +55,7 @@ export type PButtonPureProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> &
|
|
|
55
55
|
*/
|
|
56
56
|
weight?: ButtonPureWeight;
|
|
57
57
|
};
|
|
58
|
-
export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
58
|
+
export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
59
59
|
/**
|
|
60
60
|
* Display button in active state.
|
|
61
61
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { ButtonTileAlign, SelectedAriaAttributes, ButtonTileAriaAttribute, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
|
|
3
|
-
export type PButtonTileProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PButtonTileProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Alignment of button and description.
|
|
6
6
|
*/
|
|
@@ -58,7 +58,7 @@ export type PButtonTileProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> &
|
|
|
58
58
|
*/
|
|
59
59
|
weight?: BreakpointCustomizable<ButtonTileWeight>;
|
|
60
60
|
};
|
|
61
|
-
export declare const PButtonTile: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
61
|
+
export declare const PButtonTile: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
62
62
|
/**
|
|
63
63
|
* Alignment of button and description.
|
|
64
64
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { SelectedAriaAttributes, ButtonAriaAttribute, BreakpointCustomizable, ButtonIcon, Theme, ButtonType, ButtonVariant } from '../types';
|
|
3
|
-
export type PButtonProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PButtonProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Add ARIA attributes.
|
|
6
6
|
*/
|
|
@@ -38,7 +38,7 @@ export type PButtonProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
38
38
|
*/
|
|
39
39
|
variant?: ButtonVariant;
|
|
40
40
|
};
|
|
41
|
-
export declare const PButton: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
41
|
+
export declare const PButton: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
42
42
|
/**
|
|
43
43
|
* Add ARIA attributes.
|
|
44
44
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { CarouselAlignHeader, BreakpointCustomizable, CarouselInternationalization, CarouselUpdateEvent, Theme, CarouselWidth } from '../types';
|
|
3
|
-
export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines which slide to be active (zero-based numbering).
|
|
6
6
|
*/
|
|
@@ -59,7 +59,7 @@ export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
59
59
|
*/
|
|
60
60
|
wrapContent?: boolean;
|
|
61
61
|
};
|
|
62
|
-
export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
62
|
+
export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
63
63
|
/**
|
|
64
64
|
* Defines which slide to be active (zero-based numbering).
|
|
65
65
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, CheckboxWrapperState, Theme } from '../types';
|
|
3
|
-
export type PCheckboxWrapperProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PCheckboxWrapperProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
6
6
|
*/
|
|
@@ -26,7 +26,7 @@ export type PCheckboxWrapperProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange
|
|
|
26
26
|
*/
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
|
-
export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
29
|
+
export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
30
30
|
/**
|
|
31
31
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
32
32
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { ContentWrapperBackgroundColor, Theme, ContentWrapperWidth } from '../types';
|
|
3
|
-
export type PContentWrapperProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PContentWrapperProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Has no effect anymore
|
|
6
6
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
@@ -17,7 +17,7 @@ export type PContentWrapperProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'
|
|
|
17
17
|
width?: ContentWrapperWidth;
|
|
18
18
|
};
|
|
19
19
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
20
|
-
export declare const PContentWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
20
|
+
export declare const PContentWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
21
21
|
/**
|
|
22
22
|
* Has no effect anymore
|
|
23
23
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { SelectedAriaAttributes, CrestAriaAttribute, CrestTarget } from '../types';
|
|
3
|
-
export type PCrestProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PCrestProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Add ARIA attributes.
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export type PCrestProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
14
14
|
*/
|
|
15
15
|
target?: CrestTarget;
|
|
16
16
|
};
|
|
17
|
-
export declare const PCrest: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
17
|
+
export declare const PCrest: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
18
18
|
/**
|
|
19
19
|
* Add ARIA attributes.
|
|
20
20
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { DisplayAlign, DisplayColor, BreakpointCustomizable, DisplaySize, DisplayTag, Theme } from '../types';
|
|
3
|
-
export type PDisplayProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PDisplayProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Text alignment of the component.
|
|
6
6
|
*/
|
|
@@ -26,7 +26,7 @@ export type PDisplayProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
26
26
|
*/
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
|
-
export declare const PDisplay: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
29
|
+
export declare const PDisplay: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
30
30
|
/**
|
|
31
31
|
* Text alignment of the component.
|
|
32
32
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { DividerColor, BreakpointCustomizable, DividerDirection, DividerOrientation, Theme } from '../types';
|
|
3
|
-
export type PDividerProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PDividerProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines color depending on theme.
|
|
6
6
|
*/
|
|
@@ -18,7 +18,7 @@ export type PDividerProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
18
18
|
*/
|
|
19
19
|
theme?: Theme;
|
|
20
20
|
};
|
|
21
|
-
export declare const PDivider: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
21
|
+
export declare const PDivider: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
22
22
|
/**
|
|
23
23
|
* Defines color depending on theme.
|
|
24
24
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { FieldsetWrapperLabelSize, FieldsetWrapperState, Theme } from '../types';
|
|
3
|
-
export type PFieldsetWrapperProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PFieldsetWrapperProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The label text.
|
|
6
6
|
*/
|
|
@@ -27,7 +27,7 @@ export type PFieldsetWrapperProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange
|
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead. */
|
|
30
|
-
export declare const PFieldsetWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
30
|
+
export declare const PFieldsetWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
31
31
|
/**
|
|
32
32
|
* The label text.
|
|
33
33
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { FieldsetLabelSize, FieldsetState, Theme } from '../types';
|
|
3
|
-
export type PFieldsetProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PFieldsetProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The label text.
|
|
6
6
|
*/
|
|
@@ -26,7 +26,7 @@ export type PFieldsetProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
26
26
|
*/
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
|
-
export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
29
|
+
export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
30
30
|
/**
|
|
31
31
|
* The label text.
|
|
32
32
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, FlexItemAlignSelf, FlexItemFlex, FlexItemGrow, FlexItemOffset, FlexItemShrink, FlexItemWidth } from '../types';
|
|
3
|
-
export type PFlexItemProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PFlexItemProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines how this flex item is aligned along the cross axis. This overwrites the cross axis alignment set by the container. Corresponds to the "alignSelf" css property.
|
|
6
6
|
*/
|
|
@@ -27,7 +27,7 @@ export type PFlexItemProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
27
27
|
width?: BreakpointCustomizable<FlexItemWidth>;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
30
|
-
export declare const PFlexItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
30
|
+
export declare const PFlexItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
31
31
|
/**
|
|
32
32
|
* Defines how this flex item is aligned along the cross axis. This overwrites the cross axis alignment set by the container. Corresponds to the "alignSelf" css property.
|
|
33
33
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, FlexAlignContent, FlexAlignItems, FlexDirection, FlexInline, FlexJustifyContent, FlexWrap } from '../types';
|
|
3
|
-
export type PFlexProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PFlexProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* This aligns a flex container's individual lines when there is extra space in the cross-axis, similar to how "justifyContent" aligns individual items along the main axis.
|
|
6
6
|
*/
|
|
@@ -27,7 +27,7 @@ export type PFlexProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
27
27
|
wrap?: BreakpointCustomizable<FlexWrap>;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
30
|
-
export declare const PFlex: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
30
|
+
export declare const PFlex: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
31
31
|
/**
|
|
32
32
|
* This aligns a flex container's individual lines when there is extra space in the cross-axis, similar to how "justifyContent" aligns individual items along the main axis.
|
|
33
33
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, GridItemOffset, GridItemSize } from '../types';
|
|
3
|
-
export type PGridItemProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PGridItemProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
6
6
|
*/
|
|
@@ -11,7 +11,7 @@ export type PGridItemProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
11
11
|
size?: BreakpointCustomizable<GridItemSize>;
|
|
12
12
|
};
|
|
13
13
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
14
|
-
export declare const PGridItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
14
|
+
export declare const PGridItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
15
15
|
/**
|
|
16
16
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
17
17
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, GridDirection, GridGutter, GridWrap } from '../types';
|
|
3
|
-
export type PGridProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PGridProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines the direction of the main and cross axis. The default "row" defines the main axis as horizontal left to right. Also defines the direction for specific breakpoints, like {base: "column", l: "row"}. You always need to provide a base value when doing this.
|
|
6
6
|
*/
|
|
@@ -16,7 +16,7 @@ export type PGridProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
16
16
|
wrap?: BreakpointCustomizable<GridWrap>;
|
|
17
17
|
};
|
|
18
18
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
19
|
-
export declare const PGrid: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
19
|
+
export declare const PGrid: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
20
20
|
/**
|
|
21
21
|
* Defines the direction of the main and cross axis. The default "row" defines the main axis as horizontal left to right. Also defines the direction for specific breakpoints, like {base: "column", l: "row"}. You always need to provide a base value when doing this.
|
|
22
22
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { HeadingAlign, HeadingColor, BreakpointCustomizable, HeadingSize, HeadingTag, Theme } from '../types';
|
|
3
|
-
export type PHeadingProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PHeadingProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Text alignment of the component.
|
|
6
6
|
*/
|
|
@@ -26,7 +26,7 @@ export type PHeadingProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
26
26
|
*/
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
|
-
export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
29
|
+
export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
30
30
|
/**
|
|
31
31
|
* Text alignment of the component.
|
|
32
32
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { HeadlineAlign, HeadlineColor, HeadlineTag, Theme, HeadlineVariant } from '../types';
|
|
3
|
-
export type PHeadlineProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PHeadlineProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Text alignment of the component.
|
|
6
6
|
*/
|
|
@@ -27,7 +27,7 @@ export type PHeadlineProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
27
27
|
variant?: HeadlineVariant;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-heading" instead. */
|
|
30
|
-
export declare const PHeadline: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
30
|
+
export declare const PHeadline: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
31
31
|
/**
|
|
32
32
|
* Text alignment of the component.
|
|
33
33
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { SelectedAriaAttributes, IconAriaAttribute, IconColor, IconName, IconSize, Theme } from '../types';
|
|
3
|
-
export type PIconProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PIconProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Add ARIA attributes.
|
|
6
6
|
*/
|
|
@@ -31,7 +31,7 @@ export type PIconProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
31
31
|
*/
|
|
32
32
|
theme?: Theme;
|
|
33
33
|
};
|
|
34
|
-
export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
34
|
+
export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
35
35
|
/**
|
|
36
36
|
* Add ARIA attributes.
|
|
37
37
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { InlineNotificationActionIcon, InlineNotificationState, Theme } from '../types';
|
|
3
|
-
export type PInlineNotificationProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PInlineNotificationProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Action icon of the inline-notification.
|
|
6
6
|
*/
|
|
@@ -46,7 +46,7 @@ export type PInlineNotificationProps = Omit<HTMLAttributes<{}>, 'color' | 'onCha
|
|
|
46
46
|
*/
|
|
47
47
|
theme?: Theme;
|
|
48
48
|
};
|
|
49
|
-
export declare const PInlineNotification: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
49
|
+
export declare const PInlineNotification: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
50
50
|
/**
|
|
51
51
|
* Action icon of the inline-notification.
|
|
52
52
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, LinkPureAlignLabel, SelectedAriaAttributes, LinkPureAriaAttribute, LinkPureIcon, LinkPureSize, LinkPureTarget, Theme, LinkPureWeight } from '../types';
|
|
3
|
-
export type PLinkPureProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PLinkPureProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Display link in active state.
|
|
6
6
|
*/
|
|
@@ -63,7 +63,7 @@ export type PLinkPureProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
63
63
|
*/
|
|
64
64
|
weight?: LinkPureWeight;
|
|
65
65
|
};
|
|
66
|
-
export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
66
|
+
export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
67
67
|
/**
|
|
68
68
|
* Display link in active state.
|
|
69
69
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, LinkSocialIcon, LinkSocialTarget, Theme } from '../types';
|
|
3
|
-
export type PLinkSocialProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PLinkSocialProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Show or hide label.
|
|
6
6
|
*/
|
|
@@ -31,7 +31,7 @@ export type PLinkSocialProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> &
|
|
|
31
31
|
theme?: Theme;
|
|
32
32
|
};
|
|
33
33
|
/** @deprecated since v3.0.0, will be removed with next major release. Use `p-link` with corresponding social icon instead. */
|
|
34
|
-
export declare const PLinkSocial: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
34
|
+
export declare const PLinkSocial: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
35
35
|
/**
|
|
36
36
|
* Show or hide label.
|
|
37
37
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, LinkTileModelSignatureAspectRatio, LinkTileModelSignatureHeadingTag, LinkTileModelSignatureLinkDirection, LinkTileModelSignatureModel, LinkTileModelSignatureWeight } from '../types';
|
|
3
|
-
export type PLinkTileModelSignatureProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PLinkTileModelSignatureProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Aspect ratio of the link-tile-model-signature.
|
|
6
6
|
*/
|
|
@@ -30,7 +30,7 @@ export type PLinkTileModelSignatureProps = Omit<HTMLAttributes<{}>, 'color' | 'o
|
|
|
30
30
|
*/
|
|
31
31
|
weight?: BreakpointCustomizable<LinkTileModelSignatureWeight>;
|
|
32
32
|
};
|
|
33
|
-
export declare const PLinkTileModelSignature: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
33
|
+
export declare const PLinkTileModelSignature: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
34
34
|
/**
|
|
35
35
|
* Aspect ratio of the link-tile-model-signature.
|
|
36
36
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { LinkTileAlign, SelectedAriaAttributes, LinkTileAriaAttribute, BreakpointCustomizable, LinkTileAspectRatio, LinkTileSize, LinkTileTarget, LinkTileWeight } from '../types';
|
|
3
|
-
export type PLinkTileProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PLinkTileProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Alignment of link and description.
|
|
6
6
|
*/
|
|
@@ -54,7 +54,7 @@ export type PLinkTileProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
54
54
|
*/
|
|
55
55
|
weight?: BreakpointCustomizable<LinkTileWeight>;
|
|
56
56
|
};
|
|
57
|
-
export declare const PLinkTile: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
57
|
+
export declare const PLinkTile: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
58
58
|
/**
|
|
59
59
|
* Alignment of link and description.
|
|
60
60
|
*/
|