@porsche-design-system/components-react 3.6.1-rc.0 → 3.7.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 +13 -0
- package/cjs/lib/components/multi-select-option.wrapper.cjs +25 -0
- package/cjs/lib/components/multi-select.wrapper.cjs +26 -0
- package/cjs/public-api.cjs +4 -0
- package/esm/lib/components/index.d.ts +2 -0
- package/esm/lib/components/multi-select-option.wrapper.d.ts +23 -0
- package/esm/lib/components/multi-select-option.wrapper.mjs +23 -0
- package/esm/lib/components/multi-select.wrapper.d.ts +104 -0
- package/esm/lib/components/multi-select.wrapper.mjs +24 -0
- package/esm/lib/types.d.ts +12 -0
- package/esm/public-api.mjs +2 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +445 -239
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +6 -26
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select-option.wrapper.cjs +39 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +83 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +99 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +5 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +4 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +411 -207
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +5 -24
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select-option.wrapper.mjs +37 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/multi-select.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +81 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +97 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +8 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +2 -0
- package/ssr/esm/lib/components/index.d.ts +2 -0
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +23 -0
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +104 -0
- package/ssr/esm/lib/dsr-components/multi-select-option.d.ts +6 -0
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +17 -0
- package/ssr/esm/lib/types.d.ts +12 -0
|
@@ -357,6 +357,8 @@ const getRole = (state) => {
|
|
|
357
357
|
return state === 'error' ? 'alert' : state === 'success' ? 'status' : null;
|
|
358
358
|
};
|
|
359
359
|
|
|
360
|
+
const isWithinForm = (host) => !!getClosestHTMLElement(host, 'form');
|
|
361
|
+
|
|
360
362
|
const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
|
|
361
363
|
|
|
362
364
|
function _extends() {
|
|
@@ -3797,6 +3799,8 @@ const getSvgUrl = (model) => {
|
|
|
3797
3799
|
return `${getCDNBaseURL()}/model-signatures/${MODEL_SIGNATURES_MANIFEST[model]}`;
|
|
3798
3800
|
};
|
|
3799
3801
|
const modelSignatureHeight = 36;
|
|
3802
|
+
const getSelectedOptions = (options) => options.filter((option) => option.selected);
|
|
3803
|
+
const getSelectedOptionValues = (options) => options.filter((option) => option.selected).map((option) => option.value);
|
|
3800
3804
|
var ItemType;
|
|
3801
3805
|
(function (ItemType) {
|
|
3802
3806
|
ItemType[ItemType["PAGE"] = 0] = "PAGE";
|
|
@@ -3972,28 +3976,6 @@ if (tempIcon) {
|
|
|
3972
3976
|
tempIcon.style.width = ICON_SIZE;
|
|
3973
3977
|
tempIcon.style.marginRight = ICON_MARGIN;
|
|
3974
3978
|
}
|
|
3975
|
-
const getSelectWrapperDropdownButtonAriaAttributes = (isOpen, labelId, descriptionId, dropdownId, activeDescendantId) => {
|
|
3976
|
-
return {
|
|
3977
|
-
'aria-labelledby': labelId,
|
|
3978
|
-
'aria-describedby': descriptionId || null,
|
|
3979
|
-
'aria-haspopup': 'listbox',
|
|
3980
|
-
'aria-expanded': isOpen ? 'true' : 'false',
|
|
3981
|
-
'aria-controls': dropdownId,
|
|
3982
|
-
...(isOpen && {
|
|
3983
|
-
'aria-activedescendant': `option-${activeDescendantId}`,
|
|
3984
|
-
}),
|
|
3985
|
-
};
|
|
3986
|
-
};
|
|
3987
|
-
const getFilterInputAriaAttributes = (isOpen, isRequired, labelId, descriptionId, dropdownId, activeDescendantId) => {
|
|
3988
|
-
return {
|
|
3989
|
-
...getSelectWrapperDropdownButtonAriaAttributes(isOpen, labelId, descriptionId, dropdownId, activeDescendantId),
|
|
3990
|
-
'aria-autocomplete': 'list',
|
|
3991
|
-
...(isRequired && {
|
|
3992
|
-
'aria-required': 'true',
|
|
3993
|
-
}),
|
|
3994
|
-
};
|
|
3995
|
-
};
|
|
3996
|
-
const getHighlightedOptionMapIndex = (arr) => arr.findIndex((item) => item.highlighted);
|
|
3997
3979
|
const getSelectedOptionMap = (arr) => arr.find((item) => item.selected);
|
|
3998
3980
|
const isCustomDropdown = (filter, native) => {
|
|
3999
3981
|
if (filter) {
|
|
@@ -4027,7 +4009,6 @@ const getThemeForIcon = (color, theme) => {
|
|
|
4027
4009
|
return color === 'neutral-contrast-high' || color === 'primary' ? (isThemeDark(theme) ? 'light' : 'dark') : theme;
|
|
4028
4010
|
};
|
|
4029
4011
|
const isType = (inputType, typeToValidate) => inputType === typeToValidate;
|
|
4030
|
-
const isWithinForm = (host) => !!getClosestHTMLElement(host, 'form');
|
|
4031
4012
|
const hasLocateAction = (icon) => icon === 'locate';
|
|
4032
4013
|
// eslint-disable-next-line no-underscore-dangle
|
|
4033
4014
|
const _hasShowPickerSupport = () => {
|
|
@@ -4052,4 +4033,4 @@ const getTextTagType = (host, tag) => {
|
|
|
4052
4033
|
}
|
|
4053
4034
|
};
|
|
4054
4035
|
|
|
4055
|
-
export { DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, ItemType, TEXT_TAGS, _hasShowPickerSupport, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildIconUrl, buildImgSrc, buildSrcSet, createPaginationModel, createRange, crestSize, displaySizeToTagMap, getButtonAriaAttributes, getButtonAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getClosestHTMLElement, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType,
|
|
4036
|
+
export { DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, ItemType, TEXT_TAGS, _hasShowPickerSupport, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildIconUrl, buildImgSrc, buildSrcSet, createPaginationModel, createRange, crestSize, displaySizeToTagMap, getButtonAriaAttributes, getButtonAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getClosestHTMLElement, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getHTMLElement, getHeadingTagType, getHeadlineTagType, getIconColor, getInlineNotificationIconName, getInnerManifest, getLinkButtonThemeForIcon, getRole, getSelectedOptionMap, getSelectedOptionValues, getSelectedOptions, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTextTagType, getThemeForIcon, getTotalPages, hasDocument, hasLocateAction, hasSpecificSlottedTag, hasVisibleIcon, hasWindow, isCustomDropdown, isDisabledOrLoading, isHighContrastMode, isInfinitePagination, isListTypeOrdered, isScrollable, isSortable, isStateCompleteOrWarning, isThemeDark, isTouchDevice, isType, isUrl, isWithinForm, modelSignatureHeight, observedNodesMap, parseAndGetAriaAttributes, parseJSONAttribute, showCustomCalendarOrTimeIndicator, supportsConstructableStylesheets, tempDiv, tempIcon, tempLabel };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, useRef } from 'react';
|
|
4
|
+
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
|
+
import { syncRef } from '../../utils.mjs';
|
|
6
|
+
import { DSRMultiSelectOption } from '../dsr-components/multi-select-option.mjs';
|
|
7
|
+
|
|
8
|
+
const PMultiSelectOption = forwardRef(({ disabled = false, value, className, children, ...rest }, ref) => {
|
|
9
|
+
const elementRef = useRef();
|
|
10
|
+
const WebComponentTag = usePrefix('p-multi-select-option');
|
|
11
|
+
const propsToSync = [disabled, value];
|
|
12
|
+
useBrowserLayoutEffect(() => {
|
|
13
|
+
const { current } = elementRef;
|
|
14
|
+
['disabled', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
}, propsToSync);
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
if (!process.browser) {
|
|
18
|
+
className = className ? `${className} ssr` : 'ssr';
|
|
19
|
+
}
|
|
20
|
+
const props = {
|
|
21
|
+
...rest,
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
...(!process.browser
|
|
24
|
+
? {
|
|
25
|
+
children: (jsx(DSRMultiSelectOption, { disabled, value, children })),
|
|
26
|
+
}
|
|
27
|
+
: {
|
|
28
|
+
children,
|
|
29
|
+
suppressHydrationWarning: true,
|
|
30
|
+
}),
|
|
31
|
+
class: useMergedClass(elementRef, className),
|
|
32
|
+
ref: syncRef(elementRef, ref)
|
|
33
|
+
};
|
|
34
|
+
return jsx(WebComponentTag, { ...props });
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export { PMultiSelectOption };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, useRef } from 'react';
|
|
4
|
+
import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
|
+
import { syncRef } from '../../utils.mjs';
|
|
6
|
+
import { DSRMultiSelect } from '../dsr-components/multi-select.mjs';
|
|
7
|
+
|
|
8
|
+
const PMultiSelect = forwardRef(({ description = '', disabled = false, dropdownDirection = 'auto', hideLabel = false, label = '', message = '', name, onUpdate, required = false, state = 'none', theme = 'light', value = [], className, children, ...rest }, ref) => {
|
|
9
|
+
const elementRef = useRef();
|
|
10
|
+
useEventCallback(elementRef, 'update', onUpdate);
|
|
11
|
+
const WebComponentTag = usePrefix('p-multi-select');
|
|
12
|
+
const propsToSync = [description, disabled, dropdownDirection, hideLabel, label, message, name, required, state, theme, value];
|
|
13
|
+
useBrowserLayoutEffect(() => {
|
|
14
|
+
const { current } = elementRef;
|
|
15
|
+
['description', 'disabled', 'dropdownDirection', 'hideLabel', 'label', 'message', 'name', 'required', 'state', 'theme', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
|
+
}, propsToSync);
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
if (!process.browser) {
|
|
19
|
+
className = className ? `${className} ssr` : 'ssr';
|
|
20
|
+
}
|
|
21
|
+
const props = {
|
|
22
|
+
...rest,
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
...(!process.browser
|
|
25
|
+
? {
|
|
26
|
+
children: (jsx(DSRMultiSelect, { description, disabled, dropdownDirection, hideLabel, label, message, name, required, state, theme, value, children })),
|
|
27
|
+
}
|
|
28
|
+
: {
|
|
29
|
+
children,
|
|
30
|
+
suppressHydrationWarning: true,
|
|
31
|
+
}),
|
|
32
|
+
class: useMergedClass(elementRef, className),
|
|
33
|
+
ref: syncRef(elementRef, ref)
|
|
34
|
+
};
|
|
35
|
+
return jsx(WebComponentTag, { ...props });
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export { PMultiSelect };
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs
CHANGED
|
@@ -30,6 +30,8 @@ import '../components/link-tile-model-signature.wrapper.mjs';
|
|
|
30
30
|
import '../components/marque.wrapper.mjs';
|
|
31
31
|
import '../components/modal.wrapper.mjs';
|
|
32
32
|
import '../components/model-signature.wrapper.mjs';
|
|
33
|
+
import '../components/multi-select.wrapper.mjs';
|
|
34
|
+
import '../components/multi-select-option.wrapper.mjs';
|
|
33
35
|
import '../components/pagination.wrapper.mjs';
|
|
34
36
|
import '../components/popover.wrapper.mjs';
|
|
35
37
|
import '../components/radio-button-wrapper.wrapper.mjs';
|
|
@@ -64,7 +66,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
64
66
|
import { Component } from 'react';
|
|
65
67
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
66
68
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
67
|
-
import { getAccordionCss as getComponentCss
|
|
69
|
+
import { getAccordionCss as getComponentCss$$ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
68
70
|
|
|
69
71
|
class DSRAccordion extends Component {
|
|
70
72
|
host;
|
|
@@ -73,7 +75,7 @@ class DSRAccordion extends Component {
|
|
|
73
75
|
const buttonId = 'accordion-control';
|
|
74
76
|
const contentId = 'accordion-panel';
|
|
75
77
|
const Heading = this.props.tag;
|
|
76
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss
|
|
78
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$$(this.props.size, this.props.compact, this.props.open, this.props.theme)));
|
|
77
79
|
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] }));
|
|
78
80
|
}
|
|
79
81
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs
CHANGED
|
@@ -30,6 +30,8 @@ import '../components/link-tile-model-signature.wrapper.mjs';
|
|
|
30
30
|
import '../components/marque.wrapper.mjs';
|
|
31
31
|
import '../components/modal.wrapper.mjs';
|
|
32
32
|
import '../components/model-signature.wrapper.mjs';
|
|
33
|
+
import '../components/multi-select.wrapper.mjs';
|
|
34
|
+
import '../components/multi-select-option.wrapper.mjs';
|
|
33
35
|
import '../components/pagination.wrapper.mjs';
|
|
34
36
|
import '../components/popover.wrapper.mjs';
|
|
35
37
|
import '../components/radio-button-wrapper.wrapper.mjs';
|
|
@@ -64,7 +66,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
64
66
|
import { Component } from 'react';
|
|
65
67
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
66
68
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
67
|
-
import { getBannerCss as getComponentCss$
|
|
69
|
+
import { getBannerCss as getComponentCss$_ } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
68
70
|
|
|
69
71
|
class DSRBanner extends Component {
|
|
70
72
|
host;
|
|
@@ -76,7 +78,7 @@ class DSRBanner extends Component {
|
|
|
76
78
|
render() {
|
|
77
79
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
78
80
|
const hasTitleSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
|
|
79
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
81
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$_(this.props.open)));
|
|
80
82
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(PInlineNotification, { heading: this.props.heading, description: this.props.description, state: this.props.state, dismissButton: this.hasDismissButton, theme: this.props.theme, "aria-hidden": !this.props.open ? 'true' : 'false', children: [namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0 ? (jsx("slot", { name: "heading", slot: "heading" })) : (hasTitleSlot && jsx("slot", { name: "title", slot: "heading" })), namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0 && jsx("slot", { name: "description" })] })] }), this.props.children] }));
|
|
81
83
|
}
|
|
82
84
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getButtonGroupCss as getComponentCss$
|
|
6
|
+
import { getButtonGroupCss as getComponentCss$Z } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
class DSRButtonGroup extends Component {
|
|
9
9
|
host;
|
|
10
10
|
render() {
|
|
11
11
|
splitChildren(this.props.children);
|
|
12
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
12
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Z(this.props.direction)));
|
|
13
13
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { role: "group", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
14
14
|
}
|
|
15
15
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs
CHANGED
|
@@ -30,6 +30,8 @@ import '../components/link-tile-model-signature.wrapper.mjs';
|
|
|
30
30
|
import '../components/marque.wrapper.mjs';
|
|
31
31
|
import '../components/modal.wrapper.mjs';
|
|
32
32
|
import '../components/model-signature.wrapper.mjs';
|
|
33
|
+
import '../components/multi-select.wrapper.mjs';
|
|
34
|
+
import '../components/multi-select-option.wrapper.mjs';
|
|
33
35
|
import '../components/pagination.wrapper.mjs';
|
|
34
36
|
import '../components/popover.wrapper.mjs';
|
|
35
37
|
import '../components/radio-button-wrapper.wrapper.mjs';
|
|
@@ -64,7 +66,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
64
66
|
import { Component } from 'react';
|
|
65
67
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
66
68
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
67
|
-
import { getButtonPureCss as getComponentCss$
|
|
69
|
+
import { getButtonPureCss as getComponentCss$Y } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
68
70
|
import { isDisabledOrLoading, hasVisibleIcon, getButtonPureAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
69
71
|
|
|
70
72
|
class DSRButtonPure extends Component {
|
|
@@ -81,7 +83,7 @@ class DSRButtonPure extends Component {
|
|
|
81
83
|
size: 'inherit',
|
|
82
84
|
theme: this.props.theme,
|
|
83
85
|
};
|
|
84
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
86
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Y(this.props.icon, this.props.iconSource, this.props.active, this.props.loading, this.isDisabledOrLoading, this.props.stretch, this.props.size, this.props.hideLabel, this.props.alignLabel, this.props.theme)));
|
|
85
87
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("button", { ...getButtonPureAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, children: [this.props.loading ? (jsx(PSpinner, { aria: { 'aria-label': 'Loading state' }, ...iconProps })) : (hasIcon && (jsx(PIcon, { ...iconProps, name: this.props.icon, source: this.props.iconSource, color: this.isDisabledOrLoading ? 'state-disabled' : 'primary', theme: this.props.theme, "aria-hidden": "true" }))), jsx("span", { className: "label", children: jsx("slot", {}) })] })] }), this.props.children] }));
|
|
86
88
|
}
|
|
87
89
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs
CHANGED
|
@@ -31,6 +31,8 @@ import '../components/link-tile-model-signature.wrapper.mjs';
|
|
|
31
31
|
import '../components/marque.wrapper.mjs';
|
|
32
32
|
import '../components/modal.wrapper.mjs';
|
|
33
33
|
import '../components/model-signature.wrapper.mjs';
|
|
34
|
+
import '../components/multi-select.wrapper.mjs';
|
|
35
|
+
import '../components/multi-select-option.wrapper.mjs';
|
|
34
36
|
import '../components/pagination.wrapper.mjs';
|
|
35
37
|
import '../components/popover.wrapper.mjs';
|
|
36
38
|
import '../components/radio-button-wrapper.wrapper.mjs';
|
|
@@ -64,7 +66,7 @@ import '../components/wordmark.wrapper.mjs';
|
|
|
64
66
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
65
67
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
66
68
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
67
|
-
import { getButtonTileCss as getComponentCss$
|
|
69
|
+
import { getButtonTileCss as getComponentCss$X } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
68
70
|
import { isDisabledOrLoading } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
69
71
|
|
|
70
72
|
class DSRButtonTile extends Component {
|
|
@@ -82,7 +84,7 @@ class DSRButtonTile extends Component {
|
|
|
82
84
|
};
|
|
83
85
|
const button = (createElement(PButton, { ...buttonProps, icon: this.props.icon, key: "link-or-button", className: "link-or-button" }, this.props.label));
|
|
84
86
|
const buttonPure = (createElement(PButtonPure, { ...buttonProps, key: "link-or-button-pure", className: "link-or-button-pure", hideLabel: true, icon: this.props.icon === 'none' ? 'arrow-right' : this.props.icon }, this.props.label));
|
|
85
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
87
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$X(isDisabledOrLoading(this.props.disabled, this.props.loading), this.props.aspectRatio, this.props.size, this.props.weight, this.props.background, this.props.align, this.props.compact, this.props.gradient, this.props.disabled)));
|
|
86
88
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("div", { className: "root", children: [jsx("div", { className: "image-container", children: jsx("slot", {}) }), jsxs("div", { className: "content", children: [jsx("p", { children: this.props.description }), typeof this.props.compact === 'boolean' ? (this.props.compact ? buttonPure : button) : [buttonPure, button]] })] })] }), this.props.children] }));
|
|
87
89
|
}
|
|
88
90
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs
CHANGED
|
@@ -30,6 +30,8 @@ import '../components/link-tile-model-signature.wrapper.mjs';
|
|
|
30
30
|
import '../components/marque.wrapper.mjs';
|
|
31
31
|
import '../components/modal.wrapper.mjs';
|
|
32
32
|
import '../components/model-signature.wrapper.mjs';
|
|
33
|
+
import '../components/multi-select.wrapper.mjs';
|
|
34
|
+
import '../components/multi-select-option.wrapper.mjs';
|
|
33
35
|
import '../components/pagination.wrapper.mjs';
|
|
34
36
|
import '../components/popover.wrapper.mjs';
|
|
35
37
|
import '../components/radio-button-wrapper.wrapper.mjs';
|
|
@@ -64,14 +66,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
64
66
|
import { Component } from 'react';
|
|
65
67
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
66
68
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
67
|
-
import { getButtonCss as getComponentCss$
|
|
69
|
+
import { getButtonCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
68
70
|
import { getButtonAriaAttributes, getLinkButtonThemeForIcon, hasVisibleIcon } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
69
71
|
|
|
70
72
|
class DSRButton extends Component {
|
|
71
73
|
host;
|
|
72
74
|
render() {
|
|
73
75
|
splitChildren(this.props.children);
|
|
74
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
76
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$W(this.props.icon, this.props.iconSource, this.props.variant, this.props.hideLabel, this.props.disabled, this.props.loading, this.props.theme)));
|
|
75
77
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("button", { ...getButtonAriaAttributes(this.props.disabled, this.props.loading, this.props.aria), className: "root", type: this.props.type, children: [this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: getLinkButtonThemeForIcon(this.props.variant, this.props.theme), aria: { 'aria-label': 'Loading state:' } })), hasVisibleIcon(this.props.icon, this.props.iconSource) && (jsx(PIcon, { className: "icon", size: "inherit", name: this.props.iconSource ? undefined : this.props.icon, source: this.props.iconSource, color: this.props.disabled ? (this.props.variant === 'primary' ? 'contrast-high' : 'state-disabled') : 'primary', theme: !this.props.disabled ? getLinkButtonThemeForIcon(this.props.variant, this.props.theme) : this.props.theme, "aria-hidden": "true" })), jsx("span", { className: "label", children: jsx("slot", {}) })] })] }), this.props.children] }));
|
|
76
78
|
}
|
|
77
79
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs
CHANGED
|
@@ -30,6 +30,8 @@ import '../components/link-tile-model-signature.wrapper.mjs';
|
|
|
30
30
|
import '../components/marque.wrapper.mjs';
|
|
31
31
|
import '../components/modal.wrapper.mjs';
|
|
32
32
|
import '../components/model-signature.wrapper.mjs';
|
|
33
|
+
import '../components/multi-select.wrapper.mjs';
|
|
34
|
+
import '../components/multi-select-option.wrapper.mjs';
|
|
33
35
|
import '../components/pagination.wrapper.mjs';
|
|
34
36
|
import '../components/popover.wrapper.mjs';
|
|
35
37
|
import '../components/radio-button-wrapper.wrapper.mjs';
|
|
@@ -64,7 +66,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
64
66
|
import { Component } from 'react';
|
|
65
67
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
66
68
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
67
|
-
import { getCarouselCss as getComponentCss$
|
|
69
|
+
import { getCarouselCss as getComponentCss$V } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
68
70
|
import { isInfinitePagination } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
69
71
|
|
|
70
72
|
class DSRCarousel extends Component {
|
|
@@ -85,7 +87,7 @@ class DSRCarousel extends Component {
|
|
|
85
87
|
theme: this.props.theme,
|
|
86
88
|
// 'aria-controls': 'splide-track', // TODO: cross shadow dom? use native button tag instead of p-button-pure?
|
|
87
89
|
};
|
|
88
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
90
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$V(this.props.width,
|
|
89
91
|
// flip boolean values of disablePagination since it is the inverse of pagination
|
|
90
92
|
this.props.disablePagination
|
|
91
93
|
? typeof this.props.disablePagination === 'object'
|
|
@@ -30,6 +30,8 @@ import '../components/link-tile-model-signature.wrapper.mjs';
|
|
|
30
30
|
import '../components/marque.wrapper.mjs';
|
|
31
31
|
import '../components/modal.wrapper.mjs';
|
|
32
32
|
import '../components/model-signature.wrapper.mjs';
|
|
33
|
+
import '../components/multi-select.wrapper.mjs';
|
|
34
|
+
import '../components/multi-select-option.wrapper.mjs';
|
|
33
35
|
import '../components/pagination.wrapper.mjs';
|
|
34
36
|
import '../components/popover.wrapper.mjs';
|
|
35
37
|
import '../components/radio-button-wrapper.wrapper.mjs';
|
|
@@ -64,7 +66,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
64
66
|
import { Component } from 'react';
|
|
65
67
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
66
68
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
67
|
-
import { getCheckboxWrapperCss as getComponentCss$
|
|
69
|
+
import { getCheckboxWrapperCss as getComponentCss$U } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
68
70
|
import { StateMessage } from './state-message.mjs';
|
|
69
71
|
|
|
70
72
|
class DSRCheckboxWrapper extends Component {
|
|
@@ -72,7 +74,7 @@ class DSRCheckboxWrapper extends Component {
|
|
|
72
74
|
input;
|
|
73
75
|
render() {
|
|
74
76
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
75
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
77
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$U(this.props.hideLabel, this.props.state, typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props.disabled, this.props.loading, this.props.theme)));
|
|
76
78
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [jsxs("label", { "aria-disabled": this.props.loading ? 'true' : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsx("span", { className: "text", children: this.props.label || jsx("slot", { name: "label" }) })), jsx("slot", {}), this.props.loading && (jsx(PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, aria: { 'aria-label': `Loading state of ${this.props.label}` } }))] }), (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) && (jsx(StateMessage, { state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }))] })] }), this.props.children] }));
|
|
77
79
|
}
|
|
78
80
|
}
|
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getContentWrapperCss as getComponentCss$
|
|
6
|
+
import { getContentWrapperCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
9
9
|
class DSRContentWrapper extends Component {
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$T(this.props.width)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("div", { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
5
|
-
import { getCrestCss as getComponentCss$
|
|
5
|
+
import { getCrestCss as getComponentCss$S } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
import { buildCrestSrcSet, buildCrestImgSrc, parseAndGetAriaAttributes, crestSize } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
|
|
8
8
|
const { width, height } = crestSize;
|
|
@@ -10,7 +10,7 @@ class DSRCrest extends Component {
|
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
const picture = (jsxs("picture", { children: [jsx("source", { srcSet: buildCrestSrcSet('webp'), type: "image/webp" }, "webp"), jsx("source", { srcSet: buildCrestSrcSet('png'), type: "image/png" }, "png"), jsx("img", { src: buildCrestImgSrc(), width: width, height: height, alt: "Porsche" })] }));
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$S()));
|
|
14
14
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(Fragment, { children: this.props.href === undefined ? (picture) : (jsx("a", { href: this.props.href, target: this.props.target, ...parseAndGetAriaAttributes(this.props.aria), children: picture })) })] }) }));
|
|
15
15
|
}
|
|
16
16
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getDisplayCss as getComponentCss$
|
|
6
|
+
import { getDisplayCss as getComponentCss$R } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getDisplayTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
|
|
9
9
|
class DSRDisplay extends Component {
|
|
@@ -11,7 +11,7 @@ class DSRDisplay extends Component {
|
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
13
|
const TagType = getDisplayTagType(null, this.props.size, this.props.tag);
|
|
14
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
14
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$R(this.props.size, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
|
|
15
15
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
16
16
|
}
|
|
17
17
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
5
|
-
import { getDividerCss as getComponentCss$
|
|
5
|
+
import { getDividerCss as getComponentCss$Q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
6
|
|
|
7
7
|
class DSRDivider extends Component {
|
|
8
8
|
host;
|
|
@@ -12,7 +12,7 @@ class DSRDivider extends Component {
|
|
|
12
12
|
'neutral-contrast-medium': 'contrast-medium',
|
|
13
13
|
'neutral-contrast-high': 'contrast-high',
|
|
14
14
|
};
|
|
15
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
15
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$Q((deprecationMap[this.props.color] || this.props.color), this.props.orientation || this.props.direction, this.props.theme)));
|
|
16
16
|
return (jsx(Fragment, { children: jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("hr", {})] }) }));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getFieldsetWrapperCss as getComponentCss$
|
|
6
|
+
import { getFieldsetWrapperCss as getComponentCss$P } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { StateMessage } from './state-message.mjs';
|
|
8
8
|
import { Required } from './required.mjs';
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ class DSRFieldsetWrapper extends Component {
|
|
|
14
14
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
15
15
|
const messageId = 'message';
|
|
16
16
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
17
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
17
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$P(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
|
|
18
18
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), hasMessageValue && (jsx(StateMessage, { id: messageId, state: this.props.state, message: this.props.message, theme: "light", host: null }))] })] }), this.props.children] }));
|
|
19
19
|
}
|
|
20
20
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getFieldsetCss as getComponentCss$
|
|
6
|
+
import { getFieldsetCss as getComponentCss$O } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { StateMessage } from './state-message.mjs';
|
|
8
8
|
import { Required } from './required.mjs';
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ class DSRFieldset extends Component {
|
|
|
13
13
|
const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
|
|
14
14
|
const messageId = 'message';
|
|
15
15
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
16
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
16
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$O(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme)));
|
|
17
17
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), hasMessageValue && (jsx(StateMessage, { id: messageId, state: this.props.state, message: this.props.message, theme: "light", host: null }))] })] }), this.props.children] }));
|
|
18
18
|
}
|
|
19
19
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getFlexItemCss as getComponentCss$
|
|
6
|
+
import { getFlexItemCss as getComponentCss$N } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
9
9
|
class DSRFlexItem extends Component {
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$N(this.props.width, this.props.offset, this.props.alignSelf, this.props.grow, this.props.shrink, this.props.flex)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getFlexCss as getComponentCss$
|
|
6
|
+
import { getFlexCss as getComponentCss$M } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
9
9
|
class DSRFlex extends Component {
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$M(this.props.inline, this.props.wrap, this.props.direction, this.props.justifyContent, this.props.alignItems, this.props.alignContent)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs
CHANGED
|
@@ -30,6 +30,8 @@ import '../components/link-tile-model-signature.wrapper.mjs';
|
|
|
30
30
|
import '../components/marque.wrapper.mjs';
|
|
31
31
|
import '../components/modal.wrapper.mjs';
|
|
32
32
|
import '../components/model-signature.wrapper.mjs';
|
|
33
|
+
import '../components/multi-select.wrapper.mjs';
|
|
34
|
+
import '../components/multi-select-option.wrapper.mjs';
|
|
33
35
|
import '../components/pagination.wrapper.mjs';
|
|
34
36
|
import '../components/popover.wrapper.mjs';
|
|
35
37
|
import '../components/radio-button-wrapper.wrapper.mjs';
|
|
@@ -64,7 +66,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
64
66
|
import { Component } from 'react';
|
|
65
67
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
66
68
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
67
|
-
import { getFlyoutCss as getComponentCss$
|
|
69
|
+
import { getFlyoutCss as getComponentCss$L } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
68
70
|
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
69
71
|
|
|
70
72
|
class DSRFlyout extends Component {
|
|
@@ -84,7 +86,7 @@ class DSRFlyout extends Component {
|
|
|
84
86
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
85
87
|
const hasSubFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sub-footer').length > 0;
|
|
86
88
|
const dismissBtn = (jsx(PButtonPure, { className: "dismiss", type: "button", hideLabel: true, icon: "close", theme: this.props.theme, children: "Dismiss flyout" }));
|
|
87
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
89
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$L(this.props.open, this.props.position, hasHeader, hasFooter, hasSubFooter, this.props.theme)));
|
|
88
90
|
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({
|
|
89
91
|
'aria-modal': true,
|
|
90
92
|
'aria-hidden': !this.props.open,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getGridItemCss as getComponentCss$
|
|
6
|
+
import { getGridItemCss as getComponentCss$K } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
9
9
|
class DSRGridItem extends Component {
|
|
10
10
|
host;
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
13
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$K(this.props.size, this.props.offset)));
|
|
14
14
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), this.props.children] }));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getGridCss as getComponentCss$
|
|
6
|
+
import { getGridCss as getComponentCss$J } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
|
|
8
8
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
9
9
|
class DSRGrid extends Component {
|
|
@@ -13,7 +13,7 @@ class DSRGrid extends Component {
|
|
|
13
13
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
14
14
|
? { ...child, props: { ...child.props, gutter: this.props.gutter } }
|
|
15
15
|
: child);
|
|
16
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
16
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$J(this.props.direction, this.props.wrap)));
|
|
17
17
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx("slot", {})] }), manipulatedChildren] }));
|
|
18
18
|
}
|
|
19
19
|
}
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { stripFocusAndHoverStyles } from '../../stripFocusAndHoverStyles.mjs';
|
|
6
|
-
import { getHeadingCss as getComponentCss$
|
|
6
|
+
import { getHeadingCss as getComponentCss$I } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
7
|
import { getHeadingTagType } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
|
|
9
9
|
class DSRHeading extends Component {
|
|
@@ -11,7 +11,7 @@ class DSRHeading extends Component {
|
|
|
11
11
|
render() {
|
|
12
12
|
splitChildren(this.props.children);
|
|
13
13
|
const TagType = getHeadingTagType(null, this.props.size, this.props.tag);
|
|
14
|
-
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$
|
|
14
|
+
const style = minifyCss(stripFocusAndHoverStyles(getComponentCss$I(this.props.size, this.props.align, this.props.color, this.props.ellipsis, this.props.theme)));
|
|
15
15
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(TagType, { className: "root", children: jsx("slot", {}) })] }), this.props.children] }));
|
|
16
16
|
}
|
|
17
17
|
}
|