@porsche-design-system/components-react 3.28.0 → 3.29.0-rc.1
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 +56 -2
- package/cjs/lib/components/input-number.wrapper.cjs +3 -3
- package/cjs/lib/components/input-password.wrapper.cjs +3 -3
- package/cjs/lib/components/input-search.wrapper.cjs +29 -0
- package/cjs/lib/components/input-text.wrapper.cjs +29 -0
- package/cjs/lib/components/popover.wrapper.cjs +4 -3
- package/cjs/lib/components/select.wrapper.cjs +3 -3
- package/cjs/lib/components/textarea.wrapper.cjs +3 -3
- package/cjs/public-api.cjs +4 -0
- package/esm/lib/components/index.d.ts +2 -0
- package/esm/lib/components/input-number.wrapper.d.ts +12 -4
- package/esm/lib/components/input-number.wrapper.mjs +3 -3
- package/esm/lib/components/input-password.wrapper.d.ts +10 -2
- package/esm/lib/components/input-password.wrapper.mjs +3 -3
- package/esm/lib/components/input-search.wrapper.d.ts +176 -0
- package/esm/lib/components/input-search.wrapper.mjs +27 -0
- package/esm/lib/components/input-text.wrapper.d.ts +192 -0
- package/esm/lib/components/input-text.wrapper.mjs +27 -0
- package/esm/lib/components/popover.wrapper.d.ts +16 -0
- package/esm/lib/components/popover.wrapper.mjs +5 -4
- package/esm/lib/components/select.wrapper.d.ts +8 -0
- package/esm/lib/components/select.wrapper.mjs +3 -3
- package/esm/lib/components/textarea.wrapper.d.ts +12 -12
- package/esm/lib/components/textarea.wrapper.mjs +3 -3
- package/esm/lib/types.d.ts +22 -5
- package/esm/public-api.mjs +2 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +183 -80
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +5 -27
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-number.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-search.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-text.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.cjs +5 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +8 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.cjs +5 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +4 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.cjs +47 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +44 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +10 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +4 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +4 -5
- 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 +152 -51
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +5 -26
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-number.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-search.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-text.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.mjs +6 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.mjs +4 -4
- 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 +2 -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 +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 +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +2 -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/drilldown-item.mjs +2 -2
- 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 +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 +2 -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 +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +8 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +6 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs +45 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +42 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +10 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +5 -6
- 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/input-number.wrapper.d.ts +12 -4
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +10 -2
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +176 -0
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +192 -0
- package/ssr/esm/lib/components/popover.wrapper.d.ts +16 -0
- package/ssr/esm/lib/components/select.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +12 -12
- package/ssr/esm/lib/dsr-components/input-base.d.ts +4 -2
- package/ssr/esm/lib/dsr-components/input-number.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-password.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-search.d.ts +20 -0
- package/ssr/esm/lib/dsr-components/input-text.d.ts +19 -0
- package/ssr/esm/lib/dsr-components/popover.d.ts +3 -1
- package/ssr/esm/lib/dsr-components/select.d.ts +2 -0
- package/ssr/esm/lib/dsr-components/textarea.d.ts +0 -3
- package/ssr/esm/lib/types.d.ts +22 -5
|
@@ -3934,7 +3934,7 @@ const formatObjectOutput = (value) => {
|
|
|
3934
3934
|
|
|
3935
3935
|
const OPTION_LIST_SAFE_ZONE = 6;
|
|
3936
3936
|
|
|
3937
|
-
const getComponentCss$
|
|
3937
|
+
const getComponentCss$1f = (size, compact, open, theme, sticky) => {
|
|
3938
3938
|
const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
|
|
3939
3939
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
|
|
3940
3940
|
const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
|
|
@@ -4106,7 +4106,7 @@ const cssVariableTop = '--p-banner-position-top';
|
|
|
4106
4106
|
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4107
4107
|
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4108
4108
|
const topBottomFallback = '56px';
|
|
4109
|
-
const getComponentCss$
|
|
4109
|
+
const getComponentCss$1e = (isOpen) => {
|
|
4110
4110
|
return getCss({
|
|
4111
4111
|
'@global': {
|
|
4112
4112
|
':host': {
|
|
@@ -4178,7 +4178,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4178
4178
|
return groupDirectionJssStyles[direction];
|
|
4179
4179
|
};
|
|
4180
4180
|
|
|
4181
|
-
const getComponentCss$
|
|
4181
|
+
const getComponentCss$1d = (direction) => {
|
|
4182
4182
|
return getCss({
|
|
4183
4183
|
'@global': {
|
|
4184
4184
|
':host': {
|
|
@@ -4331,7 +4331,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
|
|
|
4331
4331
|
};
|
|
4332
4332
|
};
|
|
4333
4333
|
|
|
4334
|
-
const getComponentCss$
|
|
4334
|
+
const getComponentCss$1c = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
|
|
4335
4335
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4336
4336
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
|
|
4337
4337
|
root: {
|
|
@@ -4369,7 +4369,7 @@ const getFontWeight = (weight) => {
|
|
|
4369
4369
|
return fontWeightMap[weight];
|
|
4370
4370
|
};
|
|
4371
4371
|
|
|
4372
|
-
const getComponentCss$
|
|
4372
|
+
const getComponentCss$1b = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
|
|
4373
4373
|
const isTopAligned = align === 'top';
|
|
4374
4374
|
return getCss({
|
|
4375
4375
|
'@global': {
|
|
@@ -4639,7 +4639,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4639
4639
|
};
|
|
4640
4640
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4641
4641
|
};
|
|
4642
|
-
const getComponentCss$
|
|
4642
|
+
const getComponentCss$1a = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
|
|
4643
4643
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4644
4644
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4645
4645
|
const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
|
|
@@ -4715,7 +4715,7 @@ const mediaQueryS$1 = getMediaQueryMin('s');
|
|
|
4715
4715
|
const mediaQueryM = getMediaQueryMin('m');
|
|
4716
4716
|
// others
|
|
4717
4717
|
const spacingBase = gridGap.replace('36px', '24px');
|
|
4718
|
-
const getComponentCss$
|
|
4718
|
+
const getComponentCss$19 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
4719
4719
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, contrastLowColor } = getThemedColors(theme);
|
|
4720
4720
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
4721
4721
|
return getCss({
|
|
@@ -5094,7 +5094,7 @@ const getGradient$1 = (theme, gradientColorTheme) => {
|
|
|
5094
5094
|
`rgba(${gradientColor},0.3) 68%,` +
|
|
5095
5095
|
`rgba(${gradientColor},0)`);
|
|
5096
5096
|
};
|
|
5097
|
-
const getComponentCss$
|
|
5097
|
+
const getComponentCss$18 = (gradientColor, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation, alignControls) => {
|
|
5098
5098
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
5099
5099
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
5100
5100
|
const { canvasTextColor } = getHighContrastColors();
|
|
@@ -5552,7 +5552,7 @@ const getCheckedSVGBackgroundImage$2 = (fill) => {
|
|
|
5552
5552
|
const getIndeterminateSVGBackgroundImage$1 = (fill) => {
|
|
5553
5553
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5554
5554
|
};
|
|
5555
|
-
const getComponentCss$
|
|
5555
|
+
const getComponentCss$17 = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
5556
5556
|
const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
5557
5557
|
const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
|
|
5558
5558
|
const indeterminateIconColor = escapeHashCharacter(getThemedColors(theme).primaryColor);
|
|
@@ -5754,7 +5754,7 @@ const getCheckboxCheckedBaseStyles = (theme, isDisabled, isLoading, state) => {
|
|
|
5754
5754
|
const getIndeterminateSVGBackgroundImage = (fill) => {
|
|
5755
5755
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5756
5756
|
};
|
|
5757
|
-
const getComponentCss$
|
|
5757
|
+
const getComponentCss$16 = (hideLabel, state, isDisabled, isLoading, compact, theme) => {
|
|
5758
5758
|
const { primaryColor, contrastMediumColor, contrastHighColor, disabledColor, focusColor } = getThemedColors(theme);
|
|
5759
5759
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
5760
5760
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -6055,7 +6055,7 @@ const cssVarButtonPurePadding = '--ref-p-input-slotted-padding';
|
|
|
6055
6055
|
* @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."}
|
|
6056
6056
|
*/
|
|
6057
6057
|
const cssVarButtonPureMargin = '--ref-p-input-slotted-margin';
|
|
6058
|
-
const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compact, readOnly, theme, additionalInputJssStyle) => {
|
|
6058
|
+
const getFunctionalComponentInputBaseStyles = (disabled, loading, hideLabel, state, compact, readOnly, theme, additionalInputJssStyle) => {
|
|
6059
6059
|
const scalingVar = getScalingVar(compact);
|
|
6060
6060
|
const paddingBlock = `max(2px, ${formElementPaddingVertical} * ${scalingVar})`;
|
|
6061
6061
|
const paddingInline = `max(2px, ${formElementPaddingHorizontal} * ${scalingVar})`;
|
|
@@ -6097,6 +6097,14 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6097
6097
|
}),
|
|
6098
6098
|
width: '100%',
|
|
6099
6099
|
minWidth: '2rem',
|
|
6100
|
+
...(disabled && {
|
|
6101
|
+
color: disabledColor,
|
|
6102
|
+
WebkitTextFillColor: disabledColor,
|
|
6103
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6104
|
+
color: disabledColorDark,
|
|
6105
|
+
WebkitTextFillColor: disabledColorDark,
|
|
6106
|
+
}),
|
|
6107
|
+
}),
|
|
6100
6108
|
...additionalInputJssStyle,
|
|
6101
6109
|
},
|
|
6102
6110
|
},
|
|
@@ -6115,12 +6123,14 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6115
6123
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6116
6124
|
borderColor: formStateColorDark || contrastMediumColorDark,
|
|
6117
6125
|
}),
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6126
|
+
...(!disabled && {
|
|
6127
|
+
'&:has(input:focus)': {
|
|
6128
|
+
borderColor: primaryColor,
|
|
6129
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6130
|
+
borderColor: primaryColorDark,
|
|
6131
|
+
}),
|
|
6132
|
+
},
|
|
6133
|
+
}),
|
|
6124
6134
|
...(!disabled &&
|
|
6125
6135
|
!readOnly &&
|
|
6126
6136
|
hoverMediaQuery({
|
|
@@ -6128,13 +6138,9 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6128
6138
|
})),
|
|
6129
6139
|
...(disabled && {
|
|
6130
6140
|
cursor: 'not-allowed',
|
|
6131
|
-
color: disabledColor,
|
|
6132
6141
|
borderColor: disabledColor,
|
|
6133
|
-
WebkitTextFillColor: disabledColor,
|
|
6134
6142
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6135
|
-
color: disabledColorDark,
|
|
6136
6143
|
borderColor: disabledColorDark,
|
|
6137
|
-
WebkitTextFillColor: disabledColorDark,
|
|
6138
6144
|
}),
|
|
6139
6145
|
}),
|
|
6140
6146
|
...(readOnly && {
|
|
@@ -6147,6 +6153,13 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6147
6153
|
}),
|
|
6148
6154
|
}),
|
|
6149
6155
|
},
|
|
6156
|
+
...(loading && {
|
|
6157
|
+
spinner: {
|
|
6158
|
+
font: textSmallStyle.font,
|
|
6159
|
+
width: fontLineHeight,
|
|
6160
|
+
height: fontLineHeight,
|
|
6161
|
+
},
|
|
6162
|
+
}),
|
|
6150
6163
|
// .label / .required
|
|
6151
6164
|
...getFunctionalComponentLabelStyles(disabled, hideLabel, theme, !disabled &&
|
|
6152
6165
|
!readOnly &&
|
|
@@ -6155,6 +6168,8 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6155
6168
|
})),
|
|
6156
6169
|
// .message
|
|
6157
6170
|
...getFunctionalComponentStateMessageStyles(theme, state),
|
|
6171
|
+
// .loading
|
|
6172
|
+
...getFunctionalComponentLoadingMessageStyles(),
|
|
6158
6173
|
};
|
|
6159
6174
|
};
|
|
6160
6175
|
|
|
@@ -6163,7 +6178,7 @@ const widthMap = {
|
|
|
6163
6178
|
basic: gridBasicOffset,
|
|
6164
6179
|
extended: gridExtendedOffset,
|
|
6165
6180
|
};
|
|
6166
|
-
const getComponentCss$
|
|
6181
|
+
const getComponentCss$15 = (width) => {
|
|
6167
6182
|
return getCss({
|
|
6168
6183
|
'@global': {
|
|
6169
6184
|
':host': {
|
|
@@ -6205,7 +6220,7 @@ const getDimensionStyle = {
|
|
|
6205
6220
|
width: 'inherit',
|
|
6206
6221
|
height: 'inherit',
|
|
6207
6222
|
};
|
|
6208
|
-
const getComponentCss$
|
|
6223
|
+
const getComponentCss$14 = () => {
|
|
6209
6224
|
return getCss({
|
|
6210
6225
|
'@global': {
|
|
6211
6226
|
':host': {
|
|
@@ -6304,7 +6319,7 @@ const sizeMap$4 = {
|
|
|
6304
6319
|
medium: fontSizeDisplayMedium,
|
|
6305
6320
|
large: fontSizeDisplayLarge,
|
|
6306
6321
|
};
|
|
6307
|
-
const getComponentCss$
|
|
6322
|
+
const getComponentCss$13 = (size, align, color, ellipsis, theme) => {
|
|
6308
6323
|
return getCss({
|
|
6309
6324
|
'@global': {
|
|
6310
6325
|
':host': {
|
|
@@ -6322,7 +6337,7 @@ const getComponentCss$11 = (size, align, color, ellipsis, theme) => {
|
|
|
6322
6337
|
});
|
|
6323
6338
|
};
|
|
6324
6339
|
|
|
6325
|
-
const getComponentCss$
|
|
6340
|
+
const getComponentCss$12 = (color, orientation, theme) => {
|
|
6326
6341
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
6327
6342
|
const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
|
|
6328
6343
|
const colorMap = {
|
|
@@ -6383,7 +6398,7 @@ const easingOpen = 'in';
|
|
|
6383
6398
|
const dialogDurationClose = 'short';
|
|
6384
6399
|
const backdropDurationClose = 'moderate';
|
|
6385
6400
|
const easingClose = 'out';
|
|
6386
|
-
const getComponentCss
|
|
6401
|
+
const getComponentCss$11 = (isOpen, isPrimary, isSecondaryScrollerVisible, theme) => {
|
|
6387
6402
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, backgroundShadingColor } = getThemedColors(theme);
|
|
6388
6403
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, backgroundShadingColor: backgroundShadingColorDark, } = getThemedColors('dark');
|
|
6389
6404
|
return getCss({
|
|
@@ -6630,7 +6645,7 @@ const getComponentCss$$ = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6630
6645
|
});
|
|
6631
6646
|
};
|
|
6632
6647
|
|
|
6633
|
-
const getComponentCss$
|
|
6648
|
+
const getComponentCss$10 = (isPrimary, isSecondary, isCascade) => {
|
|
6634
6649
|
return getCss({
|
|
6635
6650
|
'@global': {
|
|
6636
6651
|
'@keyframes slide-up-mobile': {
|
|
@@ -6861,7 +6876,7 @@ const getComponentCss$_ = (isPrimary, isSecondary, isCascade) => {
|
|
|
6861
6876
|
});
|
|
6862
6877
|
};
|
|
6863
6878
|
|
|
6864
|
-
const getComponentCss
|
|
6879
|
+
const getComponentCss$$ = (hasSlottedAnchor, isActive) => {
|
|
6865
6880
|
const anchorJssStyle = {
|
|
6866
6881
|
all: 'unset',
|
|
6867
6882
|
padding: `calc(${spacingFluidSmall} + 2px) calc(${spacingFluidSmall} + 4px)`, // aligned with link-pure
|
|
@@ -6913,7 +6928,7 @@ const getComponentCss$Z = (hasSlottedAnchor, isActive) => {
|
|
|
6913
6928
|
});
|
|
6914
6929
|
};
|
|
6915
6930
|
|
|
6916
|
-
const getComponentCss$
|
|
6931
|
+
const getComponentCss$_ = (state, labelSize, hasLabel, theme) => {
|
|
6917
6932
|
return getCss({
|
|
6918
6933
|
'@global': {
|
|
6919
6934
|
':host': {
|
|
@@ -6950,7 +6965,7 @@ const getComponentCss$Y = (state, labelSize, hasLabel, theme) => {
|
|
|
6950
6965
|
});
|
|
6951
6966
|
};
|
|
6952
6967
|
|
|
6953
|
-
const getComponentCss$
|
|
6968
|
+
const getComponentCss$Z = (state, labelSize, hasLabel, theme) => {
|
|
6954
6969
|
return getCss({
|
|
6955
6970
|
'@global': {
|
|
6956
6971
|
':host': {
|
|
@@ -6997,7 +7012,7 @@ const flexItemWidths = {
|
|
|
6997
7012
|
full: 100,
|
|
6998
7013
|
auto: 'auto',
|
|
6999
7014
|
};
|
|
7000
|
-
const getComponentCss$
|
|
7015
|
+
const getComponentCss$Y = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
7001
7016
|
return getCss({
|
|
7002
7017
|
'@global': {
|
|
7003
7018
|
':host': addImportantToEachRule({
|
|
@@ -7019,7 +7034,7 @@ const getComponentCss$W = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
7019
7034
|
});
|
|
7020
7035
|
};
|
|
7021
7036
|
|
|
7022
|
-
const getComponentCss$
|
|
7037
|
+
const getComponentCss$X = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
7023
7038
|
return getCss({
|
|
7024
7039
|
'@global': {
|
|
7025
7040
|
':host': {
|
|
@@ -7136,10 +7151,9 @@ const getScrollerJssStyle = (position, theme) => {
|
|
|
7136
7151
|
const dialogPaddingBlock = `calc(${spacingFluidSmall} + ${spacingFluidMedium})`;
|
|
7137
7152
|
const dialogGridJssStyle = {
|
|
7138
7153
|
display: 'grid',
|
|
7139
|
-
gridTemplate: `auto/${spacingFluidSmall}
|
|
7154
|
+
gridTemplate: `auto/${spacingFluidSmall} minmax(0,1fr) ${spacingFluidSmall}`,
|
|
7155
|
+
gap: `${spacingFluidMedium} calc(${spacingFluidLarge} - ${spacingFluidSmall})`,
|
|
7140
7156
|
paddingBlock: dialogPaddingBlock,
|
|
7141
|
-
rowGap: spacingFluidMedium,
|
|
7142
|
-
columnGap: `calc(${spacingFluidLarge} - ${spacingFluidSmall})`,
|
|
7143
7157
|
alignContent: 'flex-start',
|
|
7144
7158
|
};
|
|
7145
7159
|
const getDialogColorJssStyle = (theme) => {
|
|
@@ -7207,9 +7221,17 @@ const getDialogStickyAreaJssStyle = (area, theme) => {
|
|
|
7207
7221
|
* @css-variable {"name": "--p-flyout-width", "description": "Width of the flyout.", "defaultValue": "auto"}
|
|
7208
7222
|
*/
|
|
7209
7223
|
const cssVariableWidth$2 = '--p-flyout-width';
|
|
7224
|
+
/**
|
|
7225
|
+
* @css-variable {"name": "--ref-p-flyout-pt", "description": "Exposes the internally used padding-top of the Flyout as read only CSS variable. When slotting e.g. a media container, this variable can be used to stretch the element to the top of the Flyout."}
|
|
7226
|
+
*/
|
|
7227
|
+
const cssVarRefPaddingTop = '--ref-p-flyout-pt';
|
|
7228
|
+
/**
|
|
7229
|
+
* @css-variable {"name": "--ref-p-flyout-px", "description": "Exposes the internally used padding-inline of the Flyout as read only CSS variable. When slotting e.g. a media container, this variable can be used to stretch the element to the full horizontal size of the Flyout."}
|
|
7230
|
+
*/
|
|
7231
|
+
const cssVarRefPaddingInline = '--ref-p-flyout-px';
|
|
7210
7232
|
// TODO: we shouldn't expose --p-flyout-max-width
|
|
7211
7233
|
const cssVariableMaxWidth = '--p-flyout-max-width';
|
|
7212
|
-
const getComponentCss$
|
|
7234
|
+
const getComponentCss$W = (isOpen, position, hasHeader, hasFooter, hasSubFooter, footerBehavior, theme) => {
|
|
7213
7235
|
const isPositionStart = position === 'start' || position === 'left';
|
|
7214
7236
|
const isFooterFixed = footerBehavior === 'fixed';
|
|
7215
7237
|
return getCss({
|
|
@@ -7220,6 +7242,8 @@ const getComponentCss$U = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
|
|
|
7220
7242
|
...dialogHostJssStyle,
|
|
7221
7243
|
...colorSchemeStyles,
|
|
7222
7244
|
...hostHiddenStyles,
|
|
7245
|
+
[`${cssVarRefPaddingTop}`]: dialogPaddingBlock,
|
|
7246
|
+
[`${cssVarRefPaddingInline}`]: spacingFluidLarge,
|
|
7223
7247
|
}),
|
|
7224
7248
|
},
|
|
7225
7249
|
...preventFoucOfNestedElementsStyles,
|
|
@@ -7319,7 +7343,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
7319
7343
|
const gridItemWidths = [
|
|
7320
7344
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
7321
7345
|
];
|
|
7322
|
-
const getComponentCss$
|
|
7346
|
+
const getComponentCss$V = (size, offset) => {
|
|
7323
7347
|
return getCss({
|
|
7324
7348
|
'@global': {
|
|
7325
7349
|
':host': addImportantToEachRule({
|
|
@@ -7339,7 +7363,7 @@ const getComponentCss$T = (size, offset) => {
|
|
|
7339
7363
|
};
|
|
7340
7364
|
|
|
7341
7365
|
const gutter = `calc(${gridGap} / -2)`;
|
|
7342
|
-
const getComponentCss$
|
|
7366
|
+
const getComponentCss$U = (direction, wrap) => {
|
|
7343
7367
|
return getCss({
|
|
7344
7368
|
'@global': {
|
|
7345
7369
|
':host': {
|
|
@@ -7365,7 +7389,7 @@ const sizeMap$3 = {
|
|
|
7365
7389
|
'x-large': fontSizeHeadingXLarge,
|
|
7366
7390
|
'xx-large': fontSizeHeadingXXLarge,
|
|
7367
7391
|
};
|
|
7368
|
-
const getComponentCss$
|
|
7392
|
+
const getComponentCss$T = (size, align, color, ellipsis, theme) => {
|
|
7369
7393
|
return getCss({
|
|
7370
7394
|
'@global': {
|
|
7371
7395
|
':host': {
|
|
@@ -7425,7 +7449,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
7425
7449
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
7426
7450
|
};
|
|
7427
7451
|
};
|
|
7428
|
-
const getComponentCss$
|
|
7452
|
+
const getComponentCss$S = (variant, align, color, ellipsis, theme) => {
|
|
7429
7453
|
return getCss({
|
|
7430
7454
|
'@global': {
|
|
7431
7455
|
':host': {
|
|
@@ -7536,7 +7560,7 @@ const isFlippableIcon = (name, source) => {
|
|
|
7536
7560
|
name === 'return' ||
|
|
7537
7561
|
name === 'send'));
|
|
7538
7562
|
};
|
|
7539
|
-
const getComponentCss$
|
|
7563
|
+
const getComponentCss$R = (name, source, color, size, theme) => {
|
|
7540
7564
|
const isColorInherit = color === 'inherit';
|
|
7541
7565
|
const isSizeInherit = size === 'inherit';
|
|
7542
7566
|
const isDark = isThemeDark(theme);
|
|
@@ -7655,7 +7679,7 @@ const getHeadingJssStyle = (theme) => ({
|
|
|
7655
7679
|
...headingSmallStyle,
|
|
7656
7680
|
...getTextJssStyle(theme),
|
|
7657
7681
|
});
|
|
7658
|
-
const getComponentCss$
|
|
7682
|
+
const getComponentCss$Q = (state, hasAction, hasClose, theme) => {
|
|
7659
7683
|
return getCss({
|
|
7660
7684
|
'@global': {
|
|
7661
7685
|
':host': {
|
|
@@ -7702,9 +7726,9 @@ const getComponentCss$O = (state, hasAction, hasClose, theme) => {
|
|
|
7702
7726
|
/**
|
|
7703
7727
|
* @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."}
|
|
7704
7728
|
*/
|
|
7705
|
-
const getComponentCss$
|
|
7729
|
+
const getComponentCss$P = (disabled, loading, hideLabel, state, compact, readOnly, theme, controls) => {
|
|
7706
7730
|
return getCss({
|
|
7707
|
-
...getFunctionalComponentInputBaseStyles(disabled, hideLabel, state, compact, readOnly, theme, {
|
|
7731
|
+
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7708
7732
|
textOverflow: 'ellipsis',
|
|
7709
7733
|
MozAppearance: 'textfield',
|
|
7710
7734
|
'&::-webkit-inner-spin-button, &::-webkit-outer-spin-button': {
|
|
@@ -7727,9 +7751,9 @@ const getComponentCss$N = (disabled, hideLabel, state, compact, readOnly, theme,
|
|
|
7727
7751
|
/**
|
|
7728
7752
|
* @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."}
|
|
7729
7753
|
*/
|
|
7730
|
-
const getComponentCss$
|
|
7754
|
+
const getComponentCss$O = (disabled, loading, hideLabel, state, toggle, compact, readOnly, theme) => {
|
|
7731
7755
|
return getCss({
|
|
7732
|
-
...getFunctionalComponentInputBaseStyles(disabled, hideLabel, state, compact, readOnly, theme, {
|
|
7756
|
+
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7733
7757
|
'&[type="text"]': {
|
|
7734
7758
|
textOverflow: 'ellipsis',
|
|
7735
7759
|
},
|
|
@@ -7743,6 +7767,56 @@ const getComponentCss$M = (disabled, hideLabel, state, toggle, compact, readOnly
|
|
|
7743
7767
|
});
|
|
7744
7768
|
};
|
|
7745
7769
|
|
|
7770
|
+
// CSS Variables defined in base input
|
|
7771
|
+
/**
|
|
7772
|
+
* @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."}
|
|
7773
|
+
*/
|
|
7774
|
+
/**
|
|
7775
|
+
* @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."}
|
|
7776
|
+
*/
|
|
7777
|
+
const getComponentCss$N = (disabled, loading, hideLabel, state, compact, readOnly, theme, clear) => {
|
|
7778
|
+
return getCss({
|
|
7779
|
+
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7780
|
+
textOverflow: 'ellipsis',
|
|
7781
|
+
'&[type="search"]::-webkit-search-cancel-button': {
|
|
7782
|
+
display: 'none',
|
|
7783
|
+
},
|
|
7784
|
+
}),
|
|
7785
|
+
...(clear && {
|
|
7786
|
+
button: {
|
|
7787
|
+
padding: `var(${cssVarButtonPurePadding})`,
|
|
7788
|
+
margin: `var(${cssVarButtonPureMargin})`,
|
|
7789
|
+
},
|
|
7790
|
+
}),
|
|
7791
|
+
});
|
|
7792
|
+
};
|
|
7793
|
+
|
|
7794
|
+
// CSS Variables defined in base input
|
|
7795
|
+
/**
|
|
7796
|
+
* @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."}
|
|
7797
|
+
*/
|
|
7798
|
+
/**
|
|
7799
|
+
* @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."}
|
|
7800
|
+
*/
|
|
7801
|
+
const getComponentCss$M = (disabled, loading, hideLabel, state, compact, readOnly, theme, counter) => {
|
|
7802
|
+
return getCss({
|
|
7803
|
+
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7804
|
+
textOverflow: 'ellipsis',
|
|
7805
|
+
MozAppearance: 'textfield',
|
|
7806
|
+
'&::-webkit-inner-spin-button, &::-webkit-outer-spin-button': {
|
|
7807
|
+
WebkitAppearance: 'none',
|
|
7808
|
+
},
|
|
7809
|
+
}),
|
|
7810
|
+
...(counter && {
|
|
7811
|
+
counter: {
|
|
7812
|
+
...getUnitCounterJssStyle(disabled, readOnly, theme),
|
|
7813
|
+
cursor: 'text',
|
|
7814
|
+
},
|
|
7815
|
+
}),
|
|
7816
|
+
'sr-only': getHiddenTextJssStyle(),
|
|
7817
|
+
});
|
|
7818
|
+
};
|
|
7819
|
+
|
|
7746
7820
|
const getComponentCss$L = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
7747
7821
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme), hasSlottedAnchor && {
|
|
7748
7822
|
'@global': addImportantToEachRule({
|
|
@@ -9158,6 +9232,7 @@ const getComponentCss$y = (theme) => {
|
|
|
9158
9232
|
position: 'absolute',
|
|
9159
9233
|
pointerEvents: 'none',
|
|
9160
9234
|
filter: `drop-shadow(0 0 16px ${shadowColor})`,
|
|
9235
|
+
backdropFilter: 'drop-shadow(0 0 transparent)', // workaround for Firefox bug not rendering PDS frosted glass correctly when nested inside CSS filter: https://bugzilla.mozilla.org/show_bug.cgi?id=1797051
|
|
9161
9236
|
animation: `var(${cssVariableAnimationDuration}, ${motionDurationShort}) fade-in ${motionEasingBase} forwards`,
|
|
9162
9237
|
'&:not(:popover-open)': {
|
|
9163
9238
|
display: 'none', // ensures popover is not flickering when closed in some situations
|
|
@@ -9803,7 +9878,8 @@ const getComponentCss$r = (theme) => {
|
|
|
9803
9878
|
},
|
|
9804
9879
|
...addImportantToEachRule({
|
|
9805
9880
|
':host': {
|
|
9806
|
-
|
|
9881
|
+
scrollMarginBlockStart: `calc(max(2px, var(${cssVarInternalSelectOptionScaling}, 1) * 6px) + 36px)`, // 36px input height + 6px padding
|
|
9882
|
+
scrollMarginBlockEnd: `max(2px, var(${cssVarInternalSelectOptionScaling}, 1) * 6px)`, // Aligns option when list is scrolled by navigating with keyboard
|
|
9807
9883
|
...hostHiddenStyles,
|
|
9808
9884
|
},
|
|
9809
9885
|
'::slotted(img)': getButtonImageJssStyle,
|
|
@@ -9820,6 +9896,8 @@ const getComponentCss$r = (theme) => {
|
|
|
9820
9896
|
const cssVarInternalSelectScaling = '--p-internal-select-scaling';
|
|
9821
9897
|
const getComponentCss$q = (isOpen, isDisabled, hideLabel, state, compact, theme, hasSlottedImage) => {
|
|
9822
9898
|
const scalingVar = `var(${cssVarInternalSelectScaling}, ${compact ? 0.5 : 1})`;
|
|
9899
|
+
const { contrastMediumColor: contrastMediumColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark } = getThemedColors('dark');
|
|
9900
|
+
const { contrastMediumColor, backgroundColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
9823
9901
|
return getCss({
|
|
9824
9902
|
'@global': {
|
|
9825
9903
|
// @keyframes fade-in
|
|
@@ -9849,6 +9927,29 @@ const getComponentCss$q = (isOpen, isDisabled, hideLabel, state, compact, theme,
|
|
|
9849
9927
|
// min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
|
|
9850
9928
|
minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
|
|
9851
9929
|
},
|
|
9930
|
+
filter: {
|
|
9931
|
+
position: 'sticky',
|
|
9932
|
+
top: `calc(max(2px, ${scalingVar} * 6px) * -1)`,
|
|
9933
|
+
padding: `max(2px, ${scalingVar} * 6px)`,
|
|
9934
|
+
margin: `calc(max(2px, ${scalingVar} * 6px) * -1)`,
|
|
9935
|
+
background: isThemeDark(theme) ? backgroundSurfaceColor : backgroundColor,
|
|
9936
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9937
|
+
background: backgroundSurfaceColorDark,
|
|
9938
|
+
}),
|
|
9939
|
+
zIndex: 1,
|
|
9940
|
+
},
|
|
9941
|
+
options: {
|
|
9942
|
+
display: 'flex',
|
|
9943
|
+
flexDirection: 'column',
|
|
9944
|
+
gap: `max(2px, ${scalingVar} * ${spacingStaticSmall})`,
|
|
9945
|
+
},
|
|
9946
|
+
'no-results': {
|
|
9947
|
+
...getOptionJssStyle('select-option', scalingVar, theme),
|
|
9948
|
+
color: contrastMediumColor,
|
|
9949
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9950
|
+
color: contrastMediumColorDark,
|
|
9951
|
+
}),
|
|
9952
|
+
},
|
|
9852
9953
|
icon: getIconJssStyle('select', isOpen),
|
|
9853
9954
|
'sr-only': getHiddenTextJssStyle(),
|
|
9854
9955
|
// .label / .required
|
|
@@ -11185,7 +11286,7 @@ const getComponentCss$4 = (isDisabled, isReadonly, hideLabel, state, hasCounter,
|
|
|
11185
11286
|
});
|
|
11186
11287
|
};
|
|
11187
11288
|
|
|
11188
|
-
const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state,
|
|
11289
|
+
const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, counter, resize, theme) => {
|
|
11189
11290
|
const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
|
|
11190
11291
|
const { primaryColor: primaryColorDark, contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, disabledColor: disabledColorDark, } = getThemedColors('dark');
|
|
11191
11292
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -11224,7 +11325,7 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, hasCounter,
|
|
|
11224
11325
|
}),
|
|
11225
11326
|
gridArea: '1/1',
|
|
11226
11327
|
font: textSmallStyle.font, // to override line-height
|
|
11227
|
-
padding:
|
|
11328
|
+
padding: counter
|
|
11228
11329
|
? `12px ${formElementPaddingHorizontal} ${spacingStaticLarge}`
|
|
11229
11330
|
: `12px ${formElementPaddingHorizontal}`,
|
|
11230
11331
|
// TODO: getFocusJssStyle() can't be re-used because focus style differs for form elements
|
|
@@ -11271,7 +11372,7 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, hasCounter,
|
|
|
11271
11372
|
wrapper: {
|
|
11272
11373
|
display: 'grid',
|
|
11273
11374
|
},
|
|
11274
|
-
...(
|
|
11375
|
+
...(counter && {
|
|
11275
11376
|
counter: {
|
|
11276
11377
|
...getUnitCounterJssStyle(isDisabled, isReadonly, theme),
|
|
11277
11378
|
gridArea: '1/1',
|
|
@@ -11402,41 +11503,43 @@ const getComponentCss = (size, theme) => {
|
|
|
11402
11503
|
exports.cssVarButtonPureMargin = cssVarButtonPureMargin;
|
|
11403
11504
|
exports.cssVarButtonPurePadding = cssVarButtonPurePadding;
|
|
11404
11505
|
exports.cssVarInternalInputBaseScaling = cssVarInternalInputBaseScaling;
|
|
11405
|
-
exports.getAccordionCss = getComponentCss$
|
|
11406
|
-
exports.getBannerCss = getComponentCss$
|
|
11407
|
-
exports.getButtonCss = getComponentCss$
|
|
11408
|
-
exports.getButtonGroupCss = getComponentCss$
|
|
11409
|
-
exports.getButtonPureCss = getComponentCss$
|
|
11410
|
-
exports.getButtonTileCss = getComponentCss$
|
|
11411
|
-
exports.getCanvasCss = getComponentCss$
|
|
11412
|
-
exports.getCarouselCss = getComponentCss$
|
|
11413
|
-
exports.getCheckboxCss = getComponentCss$
|
|
11414
|
-
exports.getCheckboxWrapperCss = getComponentCss$
|
|
11415
|
-
exports.getContentWrapperCss = getComponentCss$
|
|
11416
|
-
exports.getCrestCss = getComponentCss$
|
|
11417
|
-
exports.getDisplayCss = getComponentCss$
|
|
11418
|
-
exports.getDividerCss = getComponentCss$
|
|
11419
|
-
exports.getDrilldownCss = getComponentCss
|
|
11420
|
-
exports.getDrilldownItemCss = getComponentCss$
|
|
11421
|
-
exports.getDrilldownLinkCss = getComponentCss
|
|
11422
|
-
exports.getFieldsetCss = getComponentCss$
|
|
11423
|
-
exports.getFieldsetWrapperCss = getComponentCss$
|
|
11424
|
-
exports.getFlexCss = getComponentCss$
|
|
11425
|
-
exports.getFlexItemCss = getComponentCss$
|
|
11426
|
-
exports.getFlyoutCss = getComponentCss$
|
|
11506
|
+
exports.getAccordionCss = getComponentCss$1f;
|
|
11507
|
+
exports.getBannerCss = getComponentCss$1e;
|
|
11508
|
+
exports.getButtonCss = getComponentCss$1a;
|
|
11509
|
+
exports.getButtonGroupCss = getComponentCss$1d;
|
|
11510
|
+
exports.getButtonPureCss = getComponentCss$1c;
|
|
11511
|
+
exports.getButtonTileCss = getComponentCss$1b;
|
|
11512
|
+
exports.getCanvasCss = getComponentCss$19;
|
|
11513
|
+
exports.getCarouselCss = getComponentCss$18;
|
|
11514
|
+
exports.getCheckboxCss = getComponentCss$16;
|
|
11515
|
+
exports.getCheckboxWrapperCss = getComponentCss$17;
|
|
11516
|
+
exports.getContentWrapperCss = getComponentCss$15;
|
|
11517
|
+
exports.getCrestCss = getComponentCss$14;
|
|
11518
|
+
exports.getDisplayCss = getComponentCss$13;
|
|
11519
|
+
exports.getDividerCss = getComponentCss$12;
|
|
11520
|
+
exports.getDrilldownCss = getComponentCss$11;
|
|
11521
|
+
exports.getDrilldownItemCss = getComponentCss$10;
|
|
11522
|
+
exports.getDrilldownLinkCss = getComponentCss$$;
|
|
11523
|
+
exports.getFieldsetCss = getComponentCss$Z;
|
|
11524
|
+
exports.getFieldsetWrapperCss = getComponentCss$_;
|
|
11525
|
+
exports.getFlexCss = getComponentCss$X;
|
|
11526
|
+
exports.getFlexItemCss = getComponentCss$Y;
|
|
11527
|
+
exports.getFlyoutCss = getComponentCss$W;
|
|
11427
11528
|
exports.getFunctionalComponentInputBaseStyles = getFunctionalComponentInputBaseStyles;
|
|
11428
11529
|
exports.getFunctionalComponentLabelStyles = getFunctionalComponentLabelStyles;
|
|
11429
11530
|
exports.getFunctionalComponentLoadingMessageStyles = getFunctionalComponentLoadingMessageStyles;
|
|
11430
11531
|
exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
|
|
11431
11532
|
exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
|
|
11432
|
-
exports.getGridCss = getComponentCss$
|
|
11433
|
-
exports.getGridItemCss = getComponentCss$
|
|
11434
|
-
exports.getHeadingCss = getComponentCss$
|
|
11435
|
-
exports.getHeadlineCss = getComponentCss$
|
|
11436
|
-
exports.getIconCss = getComponentCss$
|
|
11437
|
-
exports.getInlineNotificationCss = getComponentCss$
|
|
11438
|
-
exports.getInputNumberCss = getComponentCss$
|
|
11439
|
-
exports.getInputPasswordCss = getComponentCss$
|
|
11533
|
+
exports.getGridCss = getComponentCss$U;
|
|
11534
|
+
exports.getGridItemCss = getComponentCss$V;
|
|
11535
|
+
exports.getHeadingCss = getComponentCss$T;
|
|
11536
|
+
exports.getHeadlineCss = getComponentCss$S;
|
|
11537
|
+
exports.getIconCss = getComponentCss$R;
|
|
11538
|
+
exports.getInlineNotificationCss = getComponentCss$Q;
|
|
11539
|
+
exports.getInputNumberCss = getComponentCss$P;
|
|
11540
|
+
exports.getInputPasswordCss = getComponentCss$O;
|
|
11541
|
+
exports.getInputSearchCss = getComponentCss$N;
|
|
11542
|
+
exports.getInputTextCss = getComponentCss$M;
|
|
11440
11543
|
exports.getLinkCss = getComponentCss$K;
|
|
11441
11544
|
exports.getLinkPureCss = getComponentCss$L;
|
|
11442
11545
|
exports.getLinkSocialCss = getComponentCss$K;
|