@porsche-design-system/components-react 3.29.0-rc.1 → 3.29.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 +16 -1
- package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
- package/cjs/lib/components/input-email.wrapper.cjs +29 -0
- package/cjs/public-api.cjs +2 -0
- package/esm/hooks.mjs +1 -1
- package/esm/lib/components/index.d.ts +1 -0
- package/esm/lib/components/input-email.wrapper.d.ts +200 -0
- package/esm/lib/components/input-email.wrapper.mjs +27 -0
- package/esm/lib/components/input-number.wrapper.d.ts +31 -31
- package/esm/lib/components/input-password.wrapper.d.ts +35 -35
- package/esm/lib/components/input-search.wrapper.d.ts +31 -31
- package/esm/lib/components/input-text.wrapper.d.ts +35 -35
- package/esm/lib/components/textarea.wrapper.d.ts +37 -37
- package/esm/lib/types.d.ts +4 -27
- package/esm/public-api.mjs +1 -0
- package/package.json +8 -8
- package/partials/esm/index.mjs +1 -0
- package/partials/package.json +3 -3
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +85 -74
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +7 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +43 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +57 -47
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +7 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-email.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +3 -3
- 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 +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +3 -3
- 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 +3 -3
- 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/drilldown-item.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +41 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
- package/ssr/esm/lib/components/index.d.ts +1 -0
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +200 -0
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +31 -31
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +35 -35
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +31 -31
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +35 -35
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +37 -37
- package/ssr/esm/lib/dsr-components/input-base.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/input-email.d.ts +19 -0
- package/ssr/esm/lib/types.d.ts +4 -27
- package/partials/index.js +0 -12
- /package/partials/{index.cjs → cjs/index.cjs} +0 -0
- /package/partials/{index.d.ts → esm/index.d.ts} +0 -0
|
@@ -2733,11 +2733,15 @@ function getDefaultExportFromCjs (x) {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
|
|
2735
2735
|
function getAugmentedNamespace(n) {
|
|
2736
|
-
if (n
|
|
2736
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
2737
2737
|
var f = n.default;
|
|
2738
2738
|
if (typeof f == "function") {
|
|
2739
2739
|
var a = function a () {
|
|
2740
|
-
|
|
2740
|
+
var isInstance = false;
|
|
2741
|
+
try {
|
|
2742
|
+
isInstance = this instanceof a;
|
|
2743
|
+
} catch {}
|
|
2744
|
+
if (isInstance) {
|
|
2741
2745
|
return Reflect.construct(f, arguments, this.constructor);
|
|
2742
2746
|
}
|
|
2743
2747
|
return f.apply(this, arguments);
|
|
@@ -3637,7 +3641,7 @@ const addImportantToEachRule = (input) => {
|
|
|
3637
3641
|
? result
|
|
3638
3642
|
: // @ts-expect-error: Type string can't be used to index type JssStyle
|
|
3639
3643
|
((result[key] =
|
|
3640
|
-
// biome-ignore lint/
|
|
3644
|
+
// biome-ignore lint/complexity/noCommaOperator: to be refactored
|
|
3641
3645
|
typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
|
|
3642
3646
|
result), {});
|
|
3643
3647
|
};
|
|
@@ -3811,7 +3815,6 @@ const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
|
|
|
3811
3815
|
// NOTE: taken from https://stackoverflow.com/a/48218209
|
|
3812
3816
|
const mergeDeep = (...objects) => {
|
|
3813
3817
|
return objects.reduce((prev, obj) => {
|
|
3814
|
-
// biome-ignore lint/complexity/noForEach: to be refactored
|
|
3815
3818
|
Object.keys(obj).forEach((key) => {
|
|
3816
3819
|
const pVal = prev[key];
|
|
3817
3820
|
const oVal = obj[key];
|
|
@@ -3894,20 +3897,6 @@ const supportsChromiumMediaQuery = (style) => ({
|
|
|
3894
3897
|
'@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm)': style,
|
|
3895
3898
|
});
|
|
3896
3899
|
|
|
3897
|
-
/**
|
|
3898
|
-
* Checks if the current environment supports the native Popover API.
|
|
3899
|
-
*
|
|
3900
|
-
* @returns {boolean} `true` if the native Popover API is supported, `false` otherwise.
|
|
3901
|
-
*/
|
|
3902
|
-
const supportsNativePopover = () => {
|
|
3903
|
-
if (!hasWindow) {
|
|
3904
|
-
return false;
|
|
3905
|
-
}
|
|
3906
|
-
return Object.prototype.hasOwnProperty.call(HTMLElement.prototype, 'popover');
|
|
3907
|
-
};
|
|
3908
|
-
// determine it once
|
|
3909
|
-
supportsNativePopover();
|
|
3910
|
-
|
|
3911
3900
|
const hasDocument = typeof document !== 'undefined';
|
|
3912
3901
|
|
|
3913
3902
|
const isThemeAuto = (theme) => {
|
|
@@ -3934,7 +3923,7 @@ const formatObjectOutput = (value) => {
|
|
|
3934
3923
|
|
|
3935
3924
|
const OPTION_LIST_SAFE_ZONE = 6;
|
|
3936
3925
|
|
|
3937
|
-
const getComponentCss$
|
|
3926
|
+
const getComponentCss$1g = (size, compact, open, theme, sticky) => {
|
|
3938
3927
|
const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
|
|
3939
3928
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
|
|
3940
3929
|
const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
|
|
@@ -4106,7 +4095,7 @@ const cssVariableTop = '--p-banner-position-top';
|
|
|
4106
4095
|
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4107
4096
|
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4108
4097
|
const topBottomFallback = '56px';
|
|
4109
|
-
const getComponentCss$
|
|
4098
|
+
const getComponentCss$1f = (isOpen) => {
|
|
4110
4099
|
return getCss({
|
|
4111
4100
|
'@global': {
|
|
4112
4101
|
':host': {
|
|
@@ -4178,7 +4167,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4178
4167
|
return groupDirectionJssStyles[direction];
|
|
4179
4168
|
};
|
|
4180
4169
|
|
|
4181
|
-
const getComponentCss$
|
|
4170
|
+
const getComponentCss$1e = (direction) => {
|
|
4182
4171
|
return getCss({
|
|
4183
4172
|
'@global': {
|
|
4184
4173
|
':host': {
|
|
@@ -4331,7 +4320,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
|
|
|
4331
4320
|
};
|
|
4332
4321
|
};
|
|
4333
4322
|
|
|
4334
|
-
const getComponentCss$
|
|
4323
|
+
const getComponentCss$1d = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
|
|
4335
4324
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4336
4325
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
|
|
4337
4326
|
root: {
|
|
@@ -4369,7 +4358,7 @@ const getFontWeight = (weight) => {
|
|
|
4369
4358
|
return fontWeightMap[weight];
|
|
4370
4359
|
};
|
|
4371
4360
|
|
|
4372
|
-
const getComponentCss$
|
|
4361
|
+
const getComponentCss$1c = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
|
|
4373
4362
|
const isTopAligned = align === 'top';
|
|
4374
4363
|
return getCss({
|
|
4375
4364
|
'@global': {
|
|
@@ -4639,7 +4628,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4639
4628
|
};
|
|
4640
4629
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4641
4630
|
};
|
|
4642
|
-
const getComponentCss$
|
|
4631
|
+
const getComponentCss$1b = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
|
|
4643
4632
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4644
4633
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4645
4634
|
const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
|
|
@@ -4715,7 +4704,7 @@ const mediaQueryS$1 = getMediaQueryMin('s');
|
|
|
4715
4704
|
const mediaQueryM = getMediaQueryMin('m');
|
|
4716
4705
|
// others
|
|
4717
4706
|
const spacingBase = gridGap.replace('36px', '24px');
|
|
4718
|
-
const getComponentCss$
|
|
4707
|
+
const getComponentCss$1a = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
4719
4708
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, contrastLowColor } = getThemedColors(theme);
|
|
4720
4709
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
4721
4710
|
return getCss({
|
|
@@ -5094,7 +5083,7 @@ const getGradient$1 = (theme, gradientColorTheme) => {
|
|
|
5094
5083
|
`rgba(${gradientColor},0.3) 68%,` +
|
|
5095
5084
|
`rgba(${gradientColor},0)`);
|
|
5096
5085
|
};
|
|
5097
|
-
const getComponentCss$
|
|
5086
|
+
const getComponentCss$19 = (gradientColor, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation, alignControls) => {
|
|
5098
5087
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
5099
5088
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
5100
5089
|
const { canvasTextColor } = getHighContrastColors();
|
|
@@ -5552,7 +5541,7 @@ const getCheckedSVGBackgroundImage$2 = (fill) => {
|
|
|
5552
5541
|
const getIndeterminateSVGBackgroundImage$1 = (fill) => {
|
|
5553
5542
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5554
5543
|
};
|
|
5555
|
-
const getComponentCss$
|
|
5544
|
+
const getComponentCss$18 = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
5556
5545
|
const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
5557
5546
|
const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
|
|
5558
5547
|
const indeterminateIconColor = escapeHashCharacter(getThemedColors(theme).primaryColor);
|
|
@@ -5754,7 +5743,7 @@ const getCheckboxCheckedBaseStyles = (theme, isDisabled, isLoading, state) => {
|
|
|
5754
5743
|
const getIndeterminateSVGBackgroundImage = (fill) => {
|
|
5755
5744
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5756
5745
|
};
|
|
5757
|
-
const getComponentCss$
|
|
5746
|
+
const getComponentCss$17 = (hideLabel, state, isDisabled, isLoading, compact, theme) => {
|
|
5758
5747
|
const { primaryColor, contrastMediumColor, contrastHighColor, disabledColor, focusColor } = getThemedColors(theme);
|
|
5759
5748
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
5760
5749
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -6178,7 +6167,7 @@ const widthMap = {
|
|
|
6178
6167
|
basic: gridBasicOffset,
|
|
6179
6168
|
extended: gridExtendedOffset,
|
|
6180
6169
|
};
|
|
6181
|
-
const getComponentCss$
|
|
6170
|
+
const getComponentCss$16 = (width) => {
|
|
6182
6171
|
return getCss({
|
|
6183
6172
|
'@global': {
|
|
6184
6173
|
':host': {
|
|
@@ -6220,7 +6209,7 @@ const getDimensionStyle = {
|
|
|
6220
6209
|
width: 'inherit',
|
|
6221
6210
|
height: 'inherit',
|
|
6222
6211
|
};
|
|
6223
|
-
const getComponentCss$
|
|
6212
|
+
const getComponentCss$15 = () => {
|
|
6224
6213
|
return getCss({
|
|
6225
6214
|
'@global': {
|
|
6226
6215
|
':host': {
|
|
@@ -6319,7 +6308,7 @@ const sizeMap$4 = {
|
|
|
6319
6308
|
medium: fontSizeDisplayMedium,
|
|
6320
6309
|
large: fontSizeDisplayLarge,
|
|
6321
6310
|
};
|
|
6322
|
-
const getComponentCss$
|
|
6311
|
+
const getComponentCss$14 = (size, align, color, ellipsis, theme) => {
|
|
6323
6312
|
return getCss({
|
|
6324
6313
|
'@global': {
|
|
6325
6314
|
':host': {
|
|
@@ -6337,7 +6326,7 @@ const getComponentCss$13 = (size, align, color, ellipsis, theme) => {
|
|
|
6337
6326
|
});
|
|
6338
6327
|
};
|
|
6339
6328
|
|
|
6340
|
-
const getComponentCss$
|
|
6329
|
+
const getComponentCss$13 = (color, orientation, theme) => {
|
|
6341
6330
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
6342
6331
|
const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
|
|
6343
6332
|
const colorMap = {
|
|
@@ -6398,7 +6387,7 @@ const easingOpen = 'in';
|
|
|
6398
6387
|
const dialogDurationClose = 'short';
|
|
6399
6388
|
const backdropDurationClose = 'moderate';
|
|
6400
6389
|
const easingClose = 'out';
|
|
6401
|
-
const getComponentCss$
|
|
6390
|
+
const getComponentCss$12 = (isOpen, isPrimary, isSecondaryScrollerVisible, theme) => {
|
|
6402
6391
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, backgroundShadingColor } = getThemedColors(theme);
|
|
6403
6392
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, backgroundShadingColor: backgroundShadingColorDark, } = getThemedColors('dark');
|
|
6404
6393
|
return getCss({
|
|
@@ -6645,7 +6634,7 @@ const getComponentCss$11 = (isOpen, isPrimary, isSecondaryScrollerVisible, theme
|
|
|
6645
6634
|
});
|
|
6646
6635
|
};
|
|
6647
6636
|
|
|
6648
|
-
const getComponentCss$
|
|
6637
|
+
const getComponentCss$11 = (isPrimary, isSecondary, isCascade) => {
|
|
6649
6638
|
return getCss({
|
|
6650
6639
|
'@global': {
|
|
6651
6640
|
'@keyframes slide-up-mobile': {
|
|
@@ -6876,7 +6865,7 @@ const getComponentCss$10 = (isPrimary, isSecondary, isCascade) => {
|
|
|
6876
6865
|
});
|
|
6877
6866
|
};
|
|
6878
6867
|
|
|
6879
|
-
const getComponentCss
|
|
6868
|
+
const getComponentCss$10 = (hasSlottedAnchor, isActive) => {
|
|
6880
6869
|
const anchorJssStyle = {
|
|
6881
6870
|
all: 'unset',
|
|
6882
6871
|
padding: `calc(${spacingFluidSmall} + 2px) calc(${spacingFluidSmall} + 4px)`, // aligned with link-pure
|
|
@@ -6928,7 +6917,7 @@ const getComponentCss$$ = (hasSlottedAnchor, isActive) => {
|
|
|
6928
6917
|
});
|
|
6929
6918
|
};
|
|
6930
6919
|
|
|
6931
|
-
const getComponentCss
|
|
6920
|
+
const getComponentCss$$ = (state, labelSize, hasLabel, theme) => {
|
|
6932
6921
|
return getCss({
|
|
6933
6922
|
'@global': {
|
|
6934
6923
|
':host': {
|
|
@@ -6965,7 +6954,7 @@ const getComponentCss$_ = (state, labelSize, hasLabel, theme) => {
|
|
|
6965
6954
|
});
|
|
6966
6955
|
};
|
|
6967
6956
|
|
|
6968
|
-
const getComponentCss$
|
|
6957
|
+
const getComponentCss$_ = (state, labelSize, hasLabel, theme) => {
|
|
6969
6958
|
return getCss({
|
|
6970
6959
|
'@global': {
|
|
6971
6960
|
':host': {
|
|
@@ -7012,7 +7001,7 @@ const flexItemWidths = {
|
|
|
7012
7001
|
full: 100,
|
|
7013
7002
|
auto: 'auto',
|
|
7014
7003
|
};
|
|
7015
|
-
const getComponentCss$
|
|
7004
|
+
const getComponentCss$Z = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
7016
7005
|
return getCss({
|
|
7017
7006
|
'@global': {
|
|
7018
7007
|
':host': addImportantToEachRule({
|
|
@@ -7034,7 +7023,7 @@ const getComponentCss$Y = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
7034
7023
|
});
|
|
7035
7024
|
};
|
|
7036
7025
|
|
|
7037
|
-
const getComponentCss$
|
|
7026
|
+
const getComponentCss$Y = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
7038
7027
|
return getCss({
|
|
7039
7028
|
'@global': {
|
|
7040
7029
|
':host': {
|
|
@@ -7231,7 +7220,7 @@ const cssVarRefPaddingTop = '--ref-p-flyout-pt';
|
|
|
7231
7220
|
const cssVarRefPaddingInline = '--ref-p-flyout-px';
|
|
7232
7221
|
// TODO: we shouldn't expose --p-flyout-max-width
|
|
7233
7222
|
const cssVariableMaxWidth = '--p-flyout-max-width';
|
|
7234
|
-
const getComponentCss$
|
|
7223
|
+
const getComponentCss$X = (isOpen, position, hasHeader, hasFooter, hasSubFooter, footerBehavior, theme) => {
|
|
7235
7224
|
const isPositionStart = position === 'start' || position === 'left';
|
|
7236
7225
|
const isFooterFixed = footerBehavior === 'fixed';
|
|
7237
7226
|
return getCss({
|
|
@@ -7343,7 +7332,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
7343
7332
|
const gridItemWidths = [
|
|
7344
7333
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
7345
7334
|
];
|
|
7346
|
-
const getComponentCss$
|
|
7335
|
+
const getComponentCss$W = (size, offset) => {
|
|
7347
7336
|
return getCss({
|
|
7348
7337
|
'@global': {
|
|
7349
7338
|
':host': addImportantToEachRule({
|
|
@@ -7363,7 +7352,7 @@ const getComponentCss$V = (size, offset) => {
|
|
|
7363
7352
|
};
|
|
7364
7353
|
|
|
7365
7354
|
const gutter = `calc(${gridGap} / -2)`;
|
|
7366
|
-
const getComponentCss$
|
|
7355
|
+
const getComponentCss$V = (direction, wrap) => {
|
|
7367
7356
|
return getCss({
|
|
7368
7357
|
'@global': {
|
|
7369
7358
|
':host': {
|
|
@@ -7389,7 +7378,7 @@ const sizeMap$3 = {
|
|
|
7389
7378
|
'x-large': fontSizeHeadingXLarge,
|
|
7390
7379
|
'xx-large': fontSizeHeadingXXLarge,
|
|
7391
7380
|
};
|
|
7392
|
-
const getComponentCss$
|
|
7381
|
+
const getComponentCss$U = (size, align, color, ellipsis, theme) => {
|
|
7393
7382
|
return getCss({
|
|
7394
7383
|
'@global': {
|
|
7395
7384
|
':host': {
|
|
@@ -7449,7 +7438,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
7449
7438
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
7450
7439
|
};
|
|
7451
7440
|
};
|
|
7452
|
-
const getComponentCss$
|
|
7441
|
+
const getComponentCss$T = (variant, align, color, ellipsis, theme) => {
|
|
7453
7442
|
return getCss({
|
|
7454
7443
|
'@global': {
|
|
7455
7444
|
':host': {
|
|
@@ -7560,7 +7549,7 @@ const isFlippableIcon = (name, source) => {
|
|
|
7560
7549
|
name === 'return' ||
|
|
7561
7550
|
name === 'send'));
|
|
7562
7551
|
};
|
|
7563
|
-
const getComponentCss$
|
|
7552
|
+
const getComponentCss$S = (name, source, color, size, theme) => {
|
|
7564
7553
|
const isColorInherit = color === 'inherit';
|
|
7565
7554
|
const isSizeInherit = size === 'inherit';
|
|
7566
7555
|
const isDark = isThemeDark(theme);
|
|
@@ -7679,7 +7668,7 @@ const getHeadingJssStyle = (theme) => ({
|
|
|
7679
7668
|
...headingSmallStyle,
|
|
7680
7669
|
...getTextJssStyle(theme),
|
|
7681
7670
|
});
|
|
7682
|
-
const getComponentCss$
|
|
7671
|
+
const getComponentCss$R = (state, hasAction, hasClose, theme) => {
|
|
7683
7672
|
return getCss({
|
|
7684
7673
|
'@global': {
|
|
7685
7674
|
':host': {
|
|
@@ -7719,6 +7708,26 @@ const getComponentCss$Q = (state, hasAction, hasClose, theme) => {
|
|
|
7719
7708
|
});
|
|
7720
7709
|
};
|
|
7721
7710
|
|
|
7711
|
+
// CSS Variables defined in base input
|
|
7712
|
+
/**
|
|
7713
|
+
* @css-variable {"name": "--ref-p-input-slotted-padding", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `padding` in oder to adjust the alignment correctly."}
|
|
7714
|
+
*/
|
|
7715
|
+
/**
|
|
7716
|
+
* @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
|
|
7717
|
+
*/
|
|
7718
|
+
const getComponentCss$Q = (disabled, loading, hideLabel, state, compact, readOnly, theme) => {
|
|
7719
|
+
return getCss({
|
|
7720
|
+
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7721
|
+
textOverflow: 'ellipsis',
|
|
7722
|
+
MozAppearance: 'textfield',
|
|
7723
|
+
'&::-webkit-inner-spin-button, &::-webkit-outer-spin-button': {
|
|
7724
|
+
WebkitAppearance: 'none',
|
|
7725
|
+
},
|
|
7726
|
+
}),
|
|
7727
|
+
'sr-only': getHiddenTextJssStyle(),
|
|
7728
|
+
});
|
|
7729
|
+
};
|
|
7730
|
+
|
|
7722
7731
|
// CSS Variables defined in base input
|
|
7723
7732
|
/**
|
|
7724
7733
|
* @css-variable {"name": "--ref-p-input-slotted-padding", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `padding` in oder to adjust the alignment correctly."}
|
|
@@ -9499,6 +9508,7 @@ const getComponentCss$w = (gradientColor, isNextHidden, isPrevHidden, alignScrol
|
|
|
9499
9508
|
};
|
|
9500
9509
|
|
|
9501
9510
|
const ITEM_PADDING = '17px';
|
|
9511
|
+
const { font: BUTTON_FONT } = textSmallStyle;
|
|
9502
9512
|
const ICON_SIZE = '1.5rem';
|
|
9503
9513
|
const ICON_MARGIN = '.25rem';
|
|
9504
9514
|
const getColors$2 = (isDisabled, isSelected, theme) => {
|
|
@@ -11503,39 +11513,40 @@ const getComponentCss = (size, theme) => {
|
|
|
11503
11513
|
exports.cssVarButtonPureMargin = cssVarButtonPureMargin;
|
|
11504
11514
|
exports.cssVarButtonPurePadding = cssVarButtonPurePadding;
|
|
11505
11515
|
exports.cssVarInternalInputBaseScaling = cssVarInternalInputBaseScaling;
|
|
11506
|
-
exports.getAccordionCss = getComponentCss$
|
|
11507
|
-
exports.getBannerCss = getComponentCss$
|
|
11508
|
-
exports.getButtonCss = getComponentCss$
|
|
11509
|
-
exports.getButtonGroupCss = getComponentCss$
|
|
11510
|
-
exports.getButtonPureCss = getComponentCss$
|
|
11511
|
-
exports.getButtonTileCss = getComponentCss$
|
|
11512
|
-
exports.getCanvasCss = getComponentCss$
|
|
11513
|
-
exports.getCarouselCss = getComponentCss$
|
|
11514
|
-
exports.getCheckboxCss = getComponentCss$
|
|
11515
|
-
exports.getCheckboxWrapperCss = getComponentCss$
|
|
11516
|
-
exports.getContentWrapperCss = getComponentCss$
|
|
11517
|
-
exports.getCrestCss = getComponentCss$
|
|
11518
|
-
exports.getDisplayCss = getComponentCss$
|
|
11519
|
-
exports.getDividerCss = getComponentCss$
|
|
11520
|
-
exports.getDrilldownCss = getComponentCss$
|
|
11521
|
-
exports.getDrilldownItemCss = getComponentCss$
|
|
11522
|
-
exports.getDrilldownLinkCss = getComponentCss
|
|
11523
|
-
exports.getFieldsetCss = getComponentCss$
|
|
11524
|
-
exports.getFieldsetWrapperCss = getComponentCss
|
|
11525
|
-
exports.getFlexCss = getComponentCss$
|
|
11526
|
-
exports.getFlexItemCss = getComponentCss$
|
|
11527
|
-
exports.getFlyoutCss = getComponentCss$
|
|
11516
|
+
exports.getAccordionCss = getComponentCss$1g;
|
|
11517
|
+
exports.getBannerCss = getComponentCss$1f;
|
|
11518
|
+
exports.getButtonCss = getComponentCss$1b;
|
|
11519
|
+
exports.getButtonGroupCss = getComponentCss$1e;
|
|
11520
|
+
exports.getButtonPureCss = getComponentCss$1d;
|
|
11521
|
+
exports.getButtonTileCss = getComponentCss$1c;
|
|
11522
|
+
exports.getCanvasCss = getComponentCss$1a;
|
|
11523
|
+
exports.getCarouselCss = getComponentCss$19;
|
|
11524
|
+
exports.getCheckboxCss = getComponentCss$17;
|
|
11525
|
+
exports.getCheckboxWrapperCss = getComponentCss$18;
|
|
11526
|
+
exports.getContentWrapperCss = getComponentCss$16;
|
|
11527
|
+
exports.getCrestCss = getComponentCss$15;
|
|
11528
|
+
exports.getDisplayCss = getComponentCss$14;
|
|
11529
|
+
exports.getDividerCss = getComponentCss$13;
|
|
11530
|
+
exports.getDrilldownCss = getComponentCss$12;
|
|
11531
|
+
exports.getDrilldownItemCss = getComponentCss$11;
|
|
11532
|
+
exports.getDrilldownLinkCss = getComponentCss$10;
|
|
11533
|
+
exports.getFieldsetCss = getComponentCss$_;
|
|
11534
|
+
exports.getFieldsetWrapperCss = getComponentCss$$;
|
|
11535
|
+
exports.getFlexCss = getComponentCss$Y;
|
|
11536
|
+
exports.getFlexItemCss = getComponentCss$Z;
|
|
11537
|
+
exports.getFlyoutCss = getComponentCss$X;
|
|
11528
11538
|
exports.getFunctionalComponentInputBaseStyles = getFunctionalComponentInputBaseStyles;
|
|
11529
11539
|
exports.getFunctionalComponentLabelStyles = getFunctionalComponentLabelStyles;
|
|
11530
11540
|
exports.getFunctionalComponentLoadingMessageStyles = getFunctionalComponentLoadingMessageStyles;
|
|
11531
11541
|
exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
|
|
11532
11542
|
exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
|
|
11533
|
-
exports.getGridCss = getComponentCss$
|
|
11534
|
-
exports.getGridItemCss = getComponentCss$
|
|
11535
|
-
exports.getHeadingCss = getComponentCss$
|
|
11536
|
-
exports.getHeadlineCss = getComponentCss$
|
|
11537
|
-
exports.getIconCss = getComponentCss$
|
|
11538
|
-
exports.getInlineNotificationCss = getComponentCss$
|
|
11543
|
+
exports.getGridCss = getComponentCss$V;
|
|
11544
|
+
exports.getGridItemCss = getComponentCss$W;
|
|
11545
|
+
exports.getHeadingCss = getComponentCss$U;
|
|
11546
|
+
exports.getHeadlineCss = getComponentCss$T;
|
|
11547
|
+
exports.getIconCss = getComponentCss$S;
|
|
11548
|
+
exports.getInlineNotificationCss = getComponentCss$R;
|
|
11549
|
+
exports.getInputEmailCss = getComponentCss$Q;
|
|
11539
11550
|
exports.getInputNumberCss = getComponentCss$P;
|
|
11540
11551
|
exports.getInputPasswordCss = getComponentCss$O;
|
|
11541
11552
|
exports.getInputSearchCss = getComponentCss$N;
|
|
@@ -2733,11 +2733,15 @@ function getDefaultExportFromCjs (x) {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
|
|
2735
2735
|
function getAugmentedNamespace(n) {
|
|
2736
|
-
if (n
|
|
2736
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
2737
2737
|
var f = n.default;
|
|
2738
2738
|
if (typeof f == "function") {
|
|
2739
2739
|
var a = function a () {
|
|
2740
|
-
|
|
2740
|
+
var isInstance = false;
|
|
2741
|
+
try {
|
|
2742
|
+
isInstance = this instanceof a;
|
|
2743
|
+
} catch {}
|
|
2744
|
+
if (isInstance) {
|
|
2741
2745
|
return Reflect.construct(f, arguments, this.constructor);
|
|
2742
2746
|
}
|
|
2743
2747
|
return f.apply(this, arguments);
|
|
@@ -3511,7 +3515,7 @@ const supportsNativePopover = () => {
|
|
|
3511
3515
|
if (!hasWindow$1) {
|
|
3512
3516
|
return false;
|
|
3513
3517
|
}
|
|
3514
|
-
return Object.
|
|
3518
|
+
return Object.hasOwn(HTMLElement.prototype, 'popover');
|
|
3515
3519
|
};
|
|
3516
3520
|
// determine it once
|
|
3517
3521
|
const hasNativePopoverSupport = supportsNativePopover();
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
var hooks = require('../../hooks.cjs');
|
|
7
|
+
var utils = require('../../utils.cjs');
|
|
8
|
+
var inputEmail = require('../dsr-components/input-email.cjs');
|
|
9
|
+
|
|
10
|
+
const PInputEmail = /*#__PURE__*/ react.forwardRef(({ autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, indicator = false, label = '', loading = false, maxLength, message = '', minLength, multiple = false, name, onBlur, onChange, onInput, pattern, placeholder = '', readOnly = false, required = false, state = 'none', theme, value = '', className, children, ...rest }, ref) => {
|
|
11
|
+
const elementRef = react.useRef(undefined);
|
|
12
|
+
hooks.useEventCallback(elementRef, 'blur', onBlur);
|
|
13
|
+
hooks.useEventCallback(elementRef, 'change', onChange);
|
|
14
|
+
hooks.useEventCallback(elementRef, 'input', onInput);
|
|
15
|
+
const WebComponentTag = hooks.usePrefix('p-input-email');
|
|
16
|
+
const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, multiple, name, pattern, placeholder, readOnly, required, state, theme || hooks.useTheme(), value];
|
|
17
|
+
hooks.useBrowserLayoutEffect(() => {
|
|
18
|
+
const { current } = elementRef;
|
|
19
|
+
['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'indicator', 'label', 'loading', 'maxLength', 'message', 'minLength', 'multiple', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'state', 'theme', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
20
|
+
}, propsToSync);
|
|
21
|
+
const props = {
|
|
22
|
+
...rest,
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
...(!process.browser
|
|
25
|
+
? {
|
|
26
|
+
children: (jsxRuntime.jsx(inputEmail.DSRInputEmail, { autoComplete, compact, description, disabled, form, hideLabel, indicator, label, loading, maxLength, message, minLength, multiple, name, pattern, placeholder, readOnly, required, state, theme: theme || hooks.useTheme(), value, children })),
|
|
27
|
+
}
|
|
28
|
+
: {
|
|
29
|
+
children,
|
|
30
|
+
suppressHydrationWarning: true,
|
|
31
|
+
}),
|
|
32
|
+
'data-ssr': '',
|
|
33
|
+
class: hooks.useMergedClass(elementRef, className),
|
|
34
|
+
ref: utils.syncRef(elementRef, ref)
|
|
35
|
+
};
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
return jsxRuntime.jsx(WebComponentTag, { ...props });
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
exports.PInputEmail = PInputEmail;
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs
CHANGED
|
@@ -23,7 +23,7 @@ class DSRBanner extends react.Component {
|
|
|
23
23
|
return this.props.persistent ? false : this.props.dismissButton;
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
const {
|
|
26
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
27
27
|
const hasTitleSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
|
|
28
28
|
const style = minifyCss.minifyCss(stylesEntry.getBannerCss(this.props.open));
|
|
29
29
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(inlineNotification_wrapper.PInlineNotification, { heading: this.props.heading, headingTag: this.props.headingTag, description: this.props.description, state: this.props.state, dismissButton: this.hasDismissButton, theme: this.props.theme, "aria-hidden": this.props.open ? 'false' : 'true', children: [namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0 ? (jsxRuntime.jsx("slot", { name: "heading", slot: "heading" })) : (hasTitleSlot && jsxRuntime.jsx("slot", { name: "title", slot: "heading" })), namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0 && jsxRuntime.jsx("slot", { name: "description" })] }) })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs
CHANGED
|
@@ -40,7 +40,7 @@ class DSRCanvas extends react.Component {
|
|
|
40
40
|
// private header: any;
|
|
41
41
|
//
|
|
42
42
|
render() {
|
|
43
|
-
const {
|
|
43
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
44
44
|
const hasTitle = namedSlotChildren.filter(({ props: { slot } }) => slot === 'title').length > 0;
|
|
45
45
|
const hasSidebarEnd = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end').length > 0;
|
|
46
46
|
const hasSidebarEndHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sidebar-end-header').length > 0;
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs
CHANGED
|
@@ -34,7 +34,7 @@ class DSRCarousel extends react.Component {
|
|
|
34
34
|
return this.props.slidesPerPage === 'auto' || this.props.amountOfPages > 1;
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
const {
|
|
37
|
+
const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
38
38
|
const alignHeaderDeprecationMap = {
|
|
39
39
|
left: 'start',
|
|
40
40
|
};
|
|
@@ -21,7 +21,7 @@ class DSRCheckboxWrapper extends react.Component {
|
|
|
21
21
|
initialLoading = false;
|
|
22
22
|
input;
|
|
23
23
|
render() {
|
|
24
|
-
const {
|
|
24
|
+
const { namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
25
25
|
const { disabled } = typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props || {};
|
|
26
26
|
const style = minifyCss.minifyCss(stylesEntry.getCheckboxWrapperCss(this.props.hideLabel, this.props.state, disabled, this.props.loading, this.props.theme));
|
|
27
27
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(legacyLabel.LegacyLabel, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: this.props.label, isLoading: this.props.loading, isDisabled: disabled, formElement: typeof otherChildren[0] === 'object' && 'props' in otherChildren[0] && otherChildren[0]?.props }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", {}), this.props.loading && (jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs
CHANGED
|
@@ -32,7 +32,7 @@ class DSRCheckbox extends react.Component {
|
|
|
32
32
|
formStateRestoreCallback() {
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
const {
|
|
35
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
36
36
|
const id = 'checkbox';
|
|
37
37
|
const style = minifyCss.minifyCss(stylesEntry.getCheckboxCss(this.props.hideLabel, this.props.state, this.props.disabled, this.props.loading, this.props.compact, this.props.theme));
|
|
38
38
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", shadowrootdelegatesfocus: "true", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(label.Label, { hasLabel: this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, htmlFor: id, label: this.props.label, isLoading: this.props.loading, isDisabled: this.props.disabled, isRequired: this.props.required }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("input", { type: "checkbox", id: id, "aria-describedby": `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-invalid": this.props.state === 'error' ? 'true' : null, "aria-disabled": this.props.loading || this.props.disabled ? 'true' : null, checked: this.props.checked, form: this.props.form, value: this.props.value, name: this.props.name, onBlur: this.props.onBlur, required: this.props.required, disabled: this.props.disabled }), this.props.loading && (jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", theme: this.props.theme, "aria-hidden": "true" }))] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: this.props.loading, initialLoading: this.props.initialLoading })] })] }), this.props.children] }));
|
|
@@ -23,7 +23,7 @@ class DSRDrilldownItem extends react.Component {
|
|
|
23
23
|
return this.props.theme || 'light'; // default as fallback (internal private prop is controlled by drilldown)
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
const {
|
|
26
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
27
27
|
const hasSlottedHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
28
28
|
const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
|
|
29
29
|
const style = minifyCss.minifyCss(stylesEntry.getDrilldownItemCss(this.props.primary, this.props.secondary, this.props.cascade));
|
|
@@ -18,7 +18,7 @@ var required = require('./required.cjs');
|
|
|
18
18
|
class DSRFieldsetWrapper extends react.Component {
|
|
19
19
|
host;
|
|
20
20
|
render() {
|
|
21
|
-
const {
|
|
21
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
22
22
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
23
23
|
const style = minifyCss.minifyCss(stylesEntry.getFieldsetWrapperCss(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
|
|
24
24
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("fieldset", { "aria-describedby": hasMessageValue ? stateMessage.messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxRuntime.jsxs("legend", { children: [this.props.label || jsxRuntime.jsx("slot", { name: "label" }), this.props.required && jsxRuntime.jsx(required.Required, {})] })), jsxRuntime.jsx("slot", {}), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs
CHANGED
|
@@ -16,7 +16,7 @@ var required = require('./required.cjs');
|
|
|
16
16
|
class DSRFieldset extends react.Component {
|
|
17
17
|
host;
|
|
18
18
|
render() {
|
|
19
|
-
const {
|
|
19
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
20
20
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
21
21
|
const style = minifyCss.minifyCss(stylesEntry.getFieldsetCss(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0), this.props.theme));
|
|
22
22
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs("fieldset", { "aria-describedby": hasMessageValue ? stateMessage.messageId : null, children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxRuntime.jsxs("legend", { children: [this.props.label || jsxRuntime.jsx("slot", { name: "label" }), this.props.required && jsxRuntime.jsx(required.Required, {})] })), jsxRuntime.jsx("slot", {}), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, theme: this.props.theme, host: null })] })] }), this.props.children] }));
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs
CHANGED
|
@@ -27,7 +27,7 @@ class DSRFlyout extends react.Component {
|
|
|
27
27
|
hasFooter;
|
|
28
28
|
hasSubFooter;
|
|
29
29
|
render() {
|
|
30
|
-
const {
|
|
30
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
31
31
|
const positionDeprecationMap = {
|
|
32
32
|
left: 'start',
|
|
33
33
|
right: 'end',
|
|
@@ -14,7 +14,7 @@ var stylesEntry = require('../../../../../../components/dist/styles/esm/styles-e
|
|
|
14
14
|
class DSRGrid extends react.Component {
|
|
15
15
|
host;
|
|
16
16
|
render() {
|
|
17
|
-
const { children,
|
|
17
|
+
const { children, otherChildren } = splitChildren.splitChildren(this.props.children);
|
|
18
18
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
19
19
|
? { ...child, props: { ...child.props, gutter: this.props.gutter } }
|
|
20
20
|
: child);
|
|
@@ -21,7 +21,7 @@ class DSRInlineNotification extends react.Component {
|
|
|
21
21
|
return this.props.persistent ? false : this.props.dismissButton;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
const {
|
|
24
|
+
const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
|
|
25
25
|
const bannerId = 'banner';
|
|
26
26
|
const labelId = 'label';
|
|
27
27
|
const descriptionId = 'description';
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs
CHANGED
|
@@ -12,7 +12,7 @@ var spinner_wrapper = require('../components/spinner.wrapper.cjs');
|
|
|
12
12
|
|
|
13
13
|
const InputBase = ({ children,
|
|
14
14
|
// host,
|
|
15
|
-
id, label: label$1, description, loading, initialLoading, required, disabled, state, message, theme, readOnly, type, form, placeholder, maxLength, minLength, max, min, value, step, spellCheck, autoComplete, name,
|
|
15
|
+
id, label: label$1, description, loading, initialLoading, required, disabled, state, message, theme, readOnly, type, form, placeholder, maxLength, minLength, max, min, value, step, spellCheck, autoComplete, pattern, multiple, name,
|
|
16
16
|
// onInput,
|
|
17
17
|
// onWheel,
|
|
18
18
|
// onChange,
|
|
@@ -20,7 +20,7 @@ id, label: label$1, description, loading, initialLoading, required, disabled, st
|
|
|
20
20
|
// refElement,
|
|
21
21
|
start, end, }) => {
|
|
22
22
|
const { namedSlotChildren } = splitChildren.splitChildren(children);
|
|
23
|
-
return (jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(label.Label, { hasLabel: !!label$1 || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: !!description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: label$1, description: description, htmlFor: id, isRequired: required, isLoading: loading, isDisabled: disabled }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", { name: "start" }), start, jsxRuntime.jsx("input", { "aria-describedby": loading ? loadingMessage.loadingId : `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": disabled || loading ? 'true' : null, "aria-readonly": readOnly ? 'true' : null, id: id, name: name, form: form, type: type, required: required, placeholder: placeholder, maxLength: maxLength, minLength: minLength, spellCheck: spellCheck, max: max, min: min, step: step, value: value, readOnly: readOnly, autoComplete: autoComplete, disabled: disabled }), end, jsxRuntime.jsx("slot", { name: "end" }), loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", theme: theme, "aria-hidden": "true" })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(state), state: state, message: message, theme: theme, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: loading, initialLoading: initialLoading })] }));
|
|
23
|
+
return (jsxRuntime.jsxs("div", { className: "root", children: [jsxRuntime.jsx(label.Label, { hasLabel: !!label$1 || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0, hasDescription: !!description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0, host: null, label: label$1, description: description, htmlFor: id, isRequired: required, isLoading: loading, isDisabled: disabled }), jsxRuntime.jsxs("div", { className: "wrapper", children: [jsxRuntime.jsx("slot", { name: "start" }), start, jsxRuntime.jsx("input", { "aria-describedby": loading ? loadingMessage.loadingId : `${utilsEntry.descriptionId} ${stateMessage.messageId}`, "aria-invalid": state === 'error' ? 'true' : null, "aria-disabled": disabled || loading ? 'true' : null, "aria-readonly": readOnly ? 'true' : null, id: id, name: name, form: form, type: type, required: required, placeholder: placeholder, maxLength: maxLength, minLength: minLength, spellCheck: spellCheck, max: max, min: min, step: step, value: value, readOnly: readOnly, autoComplete: autoComplete, disabled: disabled, pattern: pattern, multiple: multiple }), end, jsxRuntime.jsx("slot", { name: "end" }), loading && jsxRuntime.jsx(spinner_wrapper.PSpinner, { className: "spinner", size: "inherit", theme: theme, "aria-hidden": "true" })] }), jsxRuntime.jsx(stateMessage.StateMessage, { hasMessage: (message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(state), state: state, message: message, theme: theme, host: null }), jsxRuntime.jsx(loadingMessage.LoadingMessage, { loading: loading, initialLoading: initialLoading })] }));
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
exports.InputBase = InputBase;
|