@porsche-design-system/components-react 3.28.0 → 3.29.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/cjs/lib/components/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/select.wrapper.cjs +3 -3
- package/cjs/lib/components/textarea.wrapper.cjs +1 -1
- 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/select.wrapper.d.ts +8 -0
- package/esm/lib/components/select.wrapper.mjs +3 -3
- package/esm/lib/components/textarea.wrapper.d.ts +4 -4
- package/esm/lib/components/textarea.wrapper.mjs +1 -1
- package/esm/lib/types.d.ts +20 -5
- package/esm/public-api.mjs +2 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +179 -77
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +4 -15
- 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/select.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.cjs +1 -1
- 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 +43 -0
- 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/public-api.cjs +4 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +148 -48
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +4 -15
- 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/select.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea.wrapper.mjs +1 -1
- 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 +41 -0
- 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/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/select.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +4 -4
- 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/select.d.ts +2 -0
- package/ssr/esm/lib/types.d.ts +20 -5
|
@@ -3932,7 +3932,7 @@ const formatObjectOutput = (value) => {
|
|
|
3932
3932
|
|
|
3933
3933
|
const OPTION_LIST_SAFE_ZONE = 6;
|
|
3934
3934
|
|
|
3935
|
-
const getComponentCss$
|
|
3935
|
+
const getComponentCss$1f = (size, compact, open, theme, sticky) => {
|
|
3936
3936
|
const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
|
|
3937
3937
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
|
|
3938
3938
|
const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
|
|
@@ -4104,7 +4104,7 @@ const cssVariableTop = '--p-banner-position-top';
|
|
|
4104
4104
|
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4105
4105
|
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4106
4106
|
const topBottomFallback = '56px';
|
|
4107
|
-
const getComponentCss$
|
|
4107
|
+
const getComponentCss$1e = (isOpen) => {
|
|
4108
4108
|
return getCss({
|
|
4109
4109
|
'@global': {
|
|
4110
4110
|
':host': {
|
|
@@ -4176,7 +4176,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4176
4176
|
return groupDirectionJssStyles[direction];
|
|
4177
4177
|
};
|
|
4178
4178
|
|
|
4179
|
-
const getComponentCss$
|
|
4179
|
+
const getComponentCss$1d = (direction) => {
|
|
4180
4180
|
return getCss({
|
|
4181
4181
|
'@global': {
|
|
4182
4182
|
':host': {
|
|
@@ -4329,7 +4329,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
|
|
|
4329
4329
|
};
|
|
4330
4330
|
};
|
|
4331
4331
|
|
|
4332
|
-
const getComponentCss$
|
|
4332
|
+
const getComponentCss$1c = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
|
|
4333
4333
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4334
4334
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
|
|
4335
4335
|
root: {
|
|
@@ -4367,7 +4367,7 @@ const getFontWeight = (weight) => {
|
|
|
4367
4367
|
return fontWeightMap[weight];
|
|
4368
4368
|
};
|
|
4369
4369
|
|
|
4370
|
-
const getComponentCss$
|
|
4370
|
+
const getComponentCss$1b = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
|
|
4371
4371
|
const isTopAligned = align === 'top';
|
|
4372
4372
|
return getCss({
|
|
4373
4373
|
'@global': {
|
|
@@ -4637,7 +4637,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4637
4637
|
};
|
|
4638
4638
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4639
4639
|
};
|
|
4640
|
-
const getComponentCss$
|
|
4640
|
+
const getComponentCss$1a = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
|
|
4641
4641
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4642
4642
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4643
4643
|
const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
|
|
@@ -4713,7 +4713,7 @@ const mediaQueryS$1 = getMediaQueryMin('s');
|
|
|
4713
4713
|
const mediaQueryM = getMediaQueryMin('m');
|
|
4714
4714
|
// others
|
|
4715
4715
|
const spacingBase = gridGap.replace('36px', '24px');
|
|
4716
|
-
const getComponentCss$
|
|
4716
|
+
const getComponentCss$19 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
4717
4717
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, contrastLowColor } = getThemedColors(theme);
|
|
4718
4718
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
4719
4719
|
return getCss({
|
|
@@ -5092,7 +5092,7 @@ const getGradient$1 = (theme, gradientColorTheme) => {
|
|
|
5092
5092
|
`rgba(${gradientColor},0.3) 68%,` +
|
|
5093
5093
|
`rgba(${gradientColor},0)`);
|
|
5094
5094
|
};
|
|
5095
|
-
const getComponentCss$
|
|
5095
|
+
const getComponentCss$18 = (gradientColor, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation, alignControls) => {
|
|
5096
5096
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
5097
5097
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
5098
5098
|
const { canvasTextColor } = getHighContrastColors();
|
|
@@ -5550,7 +5550,7 @@ const getCheckedSVGBackgroundImage$2 = (fill) => {
|
|
|
5550
5550
|
const getIndeterminateSVGBackgroundImage$1 = (fill) => {
|
|
5551
5551
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5552
5552
|
};
|
|
5553
|
-
const getComponentCss$
|
|
5553
|
+
const getComponentCss$17 = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
5554
5554
|
const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
5555
5555
|
const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
|
|
5556
5556
|
const indeterminateIconColor = escapeHashCharacter(getThemedColors(theme).primaryColor);
|
|
@@ -5752,7 +5752,7 @@ const getCheckboxCheckedBaseStyles = (theme, isDisabled, isLoading, state) => {
|
|
|
5752
5752
|
const getIndeterminateSVGBackgroundImage = (fill) => {
|
|
5753
5753
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5754
5754
|
};
|
|
5755
|
-
const getComponentCss$
|
|
5755
|
+
const getComponentCss$16 = (hideLabel, state, isDisabled, isLoading, compact, theme) => {
|
|
5756
5756
|
const { primaryColor, contrastMediumColor, contrastHighColor, disabledColor, focusColor } = getThemedColors(theme);
|
|
5757
5757
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
5758
5758
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -6053,7 +6053,7 @@ const cssVarButtonPurePadding = '--ref-p-input-slotted-padding';
|
|
|
6053
6053
|
* @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."}
|
|
6054
6054
|
*/
|
|
6055
6055
|
const cssVarButtonPureMargin = '--ref-p-input-slotted-margin';
|
|
6056
|
-
const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compact, readOnly, theme, additionalInputJssStyle) => {
|
|
6056
|
+
const getFunctionalComponentInputBaseStyles = (disabled, loading, hideLabel, state, compact, readOnly, theme, additionalInputJssStyle) => {
|
|
6057
6057
|
const scalingVar = getScalingVar(compact);
|
|
6058
6058
|
const paddingBlock = `max(2px, ${formElementPaddingVertical} * ${scalingVar})`;
|
|
6059
6059
|
const paddingInline = `max(2px, ${formElementPaddingHorizontal} * ${scalingVar})`;
|
|
@@ -6095,6 +6095,14 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6095
6095
|
}),
|
|
6096
6096
|
width: '100%',
|
|
6097
6097
|
minWidth: '2rem',
|
|
6098
|
+
...(disabled && {
|
|
6099
|
+
color: disabledColor,
|
|
6100
|
+
WebkitTextFillColor: disabledColor,
|
|
6101
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6102
|
+
color: disabledColorDark,
|
|
6103
|
+
WebkitTextFillColor: disabledColorDark,
|
|
6104
|
+
}),
|
|
6105
|
+
}),
|
|
6098
6106
|
...additionalInputJssStyle,
|
|
6099
6107
|
},
|
|
6100
6108
|
},
|
|
@@ -6113,12 +6121,14 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6113
6121
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6114
6122
|
borderColor: formStateColorDark || contrastMediumColorDark,
|
|
6115
6123
|
}),
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6124
|
+
...(!disabled && {
|
|
6125
|
+
'&:has(input:focus)': {
|
|
6126
|
+
borderColor: primaryColor,
|
|
6127
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6128
|
+
borderColor: primaryColorDark,
|
|
6129
|
+
}),
|
|
6130
|
+
},
|
|
6131
|
+
}),
|
|
6122
6132
|
...(!disabled &&
|
|
6123
6133
|
!readOnly &&
|
|
6124
6134
|
hoverMediaQuery({
|
|
@@ -6126,13 +6136,9 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6126
6136
|
})),
|
|
6127
6137
|
...(disabled && {
|
|
6128
6138
|
cursor: 'not-allowed',
|
|
6129
|
-
color: disabledColor,
|
|
6130
6139
|
borderColor: disabledColor,
|
|
6131
|
-
WebkitTextFillColor: disabledColor,
|
|
6132
6140
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6133
|
-
color: disabledColorDark,
|
|
6134
6141
|
borderColor: disabledColorDark,
|
|
6135
|
-
WebkitTextFillColor: disabledColorDark,
|
|
6136
6142
|
}),
|
|
6137
6143
|
}),
|
|
6138
6144
|
...(readOnly && {
|
|
@@ -6145,6 +6151,13 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6145
6151
|
}),
|
|
6146
6152
|
}),
|
|
6147
6153
|
},
|
|
6154
|
+
...(loading && {
|
|
6155
|
+
spinner: {
|
|
6156
|
+
font: textSmallStyle.font,
|
|
6157
|
+
width: fontLineHeight,
|
|
6158
|
+
height: fontLineHeight,
|
|
6159
|
+
},
|
|
6160
|
+
}),
|
|
6148
6161
|
// .label / .required
|
|
6149
6162
|
...getFunctionalComponentLabelStyles(disabled, hideLabel, theme, !disabled &&
|
|
6150
6163
|
!readOnly &&
|
|
@@ -6153,6 +6166,8 @@ const getFunctionalComponentInputBaseStyles = (disabled, hideLabel, state, compa
|
|
|
6153
6166
|
})),
|
|
6154
6167
|
// .message
|
|
6155
6168
|
...getFunctionalComponentStateMessageStyles(theme, state),
|
|
6169
|
+
// .loading
|
|
6170
|
+
...getFunctionalComponentLoadingMessageStyles(),
|
|
6156
6171
|
};
|
|
6157
6172
|
};
|
|
6158
6173
|
|
|
@@ -6161,7 +6176,7 @@ const widthMap = {
|
|
|
6161
6176
|
basic: gridBasicOffset,
|
|
6162
6177
|
extended: gridExtendedOffset,
|
|
6163
6178
|
};
|
|
6164
|
-
const getComponentCss$
|
|
6179
|
+
const getComponentCss$15 = (width) => {
|
|
6165
6180
|
return getCss({
|
|
6166
6181
|
'@global': {
|
|
6167
6182
|
':host': {
|
|
@@ -6203,7 +6218,7 @@ const getDimensionStyle = {
|
|
|
6203
6218
|
width: 'inherit',
|
|
6204
6219
|
height: 'inherit',
|
|
6205
6220
|
};
|
|
6206
|
-
const getComponentCss$
|
|
6221
|
+
const getComponentCss$14 = () => {
|
|
6207
6222
|
return getCss({
|
|
6208
6223
|
'@global': {
|
|
6209
6224
|
':host': {
|
|
@@ -6302,7 +6317,7 @@ const sizeMap$4 = {
|
|
|
6302
6317
|
medium: fontSizeDisplayMedium,
|
|
6303
6318
|
large: fontSizeDisplayLarge,
|
|
6304
6319
|
};
|
|
6305
|
-
const getComponentCss$
|
|
6320
|
+
const getComponentCss$13 = (size, align, color, ellipsis, theme) => {
|
|
6306
6321
|
return getCss({
|
|
6307
6322
|
'@global': {
|
|
6308
6323
|
':host': {
|
|
@@ -6320,7 +6335,7 @@ const getComponentCss$11 = (size, align, color, ellipsis, theme) => {
|
|
|
6320
6335
|
});
|
|
6321
6336
|
};
|
|
6322
6337
|
|
|
6323
|
-
const getComponentCss$
|
|
6338
|
+
const getComponentCss$12 = (color, orientation, theme) => {
|
|
6324
6339
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
6325
6340
|
const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
|
|
6326
6341
|
const colorMap = {
|
|
@@ -6381,7 +6396,7 @@ const easingOpen = 'in';
|
|
|
6381
6396
|
const dialogDurationClose = 'short';
|
|
6382
6397
|
const backdropDurationClose = 'moderate';
|
|
6383
6398
|
const easingClose = 'out';
|
|
6384
|
-
const getComponentCss
|
|
6399
|
+
const getComponentCss$11 = (isOpen, isPrimary, isSecondaryScrollerVisible, theme) => {
|
|
6385
6400
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, backgroundShadingColor } = getThemedColors(theme);
|
|
6386
6401
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, backgroundShadingColor: backgroundShadingColorDark, } = getThemedColors('dark');
|
|
6387
6402
|
return getCss({
|
|
@@ -6628,7 +6643,7 @@ const getComponentCss$$ = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6628
6643
|
});
|
|
6629
6644
|
};
|
|
6630
6645
|
|
|
6631
|
-
const getComponentCss$
|
|
6646
|
+
const getComponentCss$10 = (isPrimary, isSecondary, isCascade) => {
|
|
6632
6647
|
return getCss({
|
|
6633
6648
|
'@global': {
|
|
6634
6649
|
'@keyframes slide-up-mobile': {
|
|
@@ -6859,7 +6874,7 @@ const getComponentCss$_ = (isPrimary, isSecondary, isCascade) => {
|
|
|
6859
6874
|
});
|
|
6860
6875
|
};
|
|
6861
6876
|
|
|
6862
|
-
const getComponentCss
|
|
6877
|
+
const getComponentCss$$ = (hasSlottedAnchor, isActive) => {
|
|
6863
6878
|
const anchorJssStyle = {
|
|
6864
6879
|
all: 'unset',
|
|
6865
6880
|
padding: `calc(${spacingFluidSmall} + 2px) calc(${spacingFluidSmall} + 4px)`, // aligned with link-pure
|
|
@@ -6911,7 +6926,7 @@ const getComponentCss$Z = (hasSlottedAnchor, isActive) => {
|
|
|
6911
6926
|
});
|
|
6912
6927
|
};
|
|
6913
6928
|
|
|
6914
|
-
const getComponentCss$
|
|
6929
|
+
const getComponentCss$_ = (state, labelSize, hasLabel, theme) => {
|
|
6915
6930
|
return getCss({
|
|
6916
6931
|
'@global': {
|
|
6917
6932
|
':host': {
|
|
@@ -6948,7 +6963,7 @@ const getComponentCss$Y = (state, labelSize, hasLabel, theme) => {
|
|
|
6948
6963
|
});
|
|
6949
6964
|
};
|
|
6950
6965
|
|
|
6951
|
-
const getComponentCss$
|
|
6966
|
+
const getComponentCss$Z = (state, labelSize, hasLabel, theme) => {
|
|
6952
6967
|
return getCss({
|
|
6953
6968
|
'@global': {
|
|
6954
6969
|
':host': {
|
|
@@ -6995,7 +7010,7 @@ const flexItemWidths = {
|
|
|
6995
7010
|
full: 100,
|
|
6996
7011
|
auto: 'auto',
|
|
6997
7012
|
};
|
|
6998
|
-
const getComponentCss$
|
|
7013
|
+
const getComponentCss$Y = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
6999
7014
|
return getCss({
|
|
7000
7015
|
'@global': {
|
|
7001
7016
|
':host': addImportantToEachRule({
|
|
@@ -7017,7 +7032,7 @@ const getComponentCss$W = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
7017
7032
|
});
|
|
7018
7033
|
};
|
|
7019
7034
|
|
|
7020
|
-
const getComponentCss$
|
|
7035
|
+
const getComponentCss$X = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
7021
7036
|
return getCss({
|
|
7022
7037
|
'@global': {
|
|
7023
7038
|
':host': {
|
|
@@ -7134,10 +7149,9 @@ const getScrollerJssStyle = (position, theme) => {
|
|
|
7134
7149
|
const dialogPaddingBlock = `calc(${spacingFluidSmall} + ${spacingFluidMedium})`;
|
|
7135
7150
|
const dialogGridJssStyle = {
|
|
7136
7151
|
display: 'grid',
|
|
7137
|
-
gridTemplate: `auto/${spacingFluidSmall}
|
|
7152
|
+
gridTemplate: `auto/${spacingFluidSmall} minmax(0,1fr) ${spacingFluidSmall}`,
|
|
7153
|
+
gap: `${spacingFluidMedium} calc(${spacingFluidLarge} - ${spacingFluidSmall})`,
|
|
7138
7154
|
paddingBlock: dialogPaddingBlock,
|
|
7139
|
-
rowGap: spacingFluidMedium,
|
|
7140
|
-
columnGap: `calc(${spacingFluidLarge} - ${spacingFluidSmall})`,
|
|
7141
7155
|
alignContent: 'flex-start',
|
|
7142
7156
|
};
|
|
7143
7157
|
const getDialogColorJssStyle = (theme) => {
|
|
@@ -7205,9 +7219,17 @@ const getDialogStickyAreaJssStyle = (area, theme) => {
|
|
|
7205
7219
|
* @css-variable {"name": "--p-flyout-width", "description": "Width of the flyout.", "defaultValue": "auto"}
|
|
7206
7220
|
*/
|
|
7207
7221
|
const cssVariableWidth$2 = '--p-flyout-width';
|
|
7222
|
+
/**
|
|
7223
|
+
* @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."}
|
|
7224
|
+
*/
|
|
7225
|
+
const cssVarRefPaddingTop = '--ref-p-flyout-pt';
|
|
7226
|
+
/**
|
|
7227
|
+
* @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."}
|
|
7228
|
+
*/
|
|
7229
|
+
const cssVarRefPaddingInline = '--ref-p-flyout-px';
|
|
7208
7230
|
// TODO: we shouldn't expose --p-flyout-max-width
|
|
7209
7231
|
const cssVariableMaxWidth = '--p-flyout-max-width';
|
|
7210
|
-
const getComponentCss$
|
|
7232
|
+
const getComponentCss$W = (isOpen, position, hasHeader, hasFooter, hasSubFooter, footerBehavior, theme) => {
|
|
7211
7233
|
const isPositionStart = position === 'start' || position === 'left';
|
|
7212
7234
|
const isFooterFixed = footerBehavior === 'fixed';
|
|
7213
7235
|
return getCss({
|
|
@@ -7218,6 +7240,8 @@ const getComponentCss$U = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
|
|
|
7218
7240
|
...dialogHostJssStyle,
|
|
7219
7241
|
...colorSchemeStyles,
|
|
7220
7242
|
...hostHiddenStyles,
|
|
7243
|
+
[`${cssVarRefPaddingTop}`]: dialogPaddingBlock,
|
|
7244
|
+
[`${cssVarRefPaddingInline}`]: spacingFluidLarge,
|
|
7221
7245
|
}),
|
|
7222
7246
|
},
|
|
7223
7247
|
...preventFoucOfNestedElementsStyles,
|
|
@@ -7317,7 +7341,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
7317
7341
|
const gridItemWidths = [
|
|
7318
7342
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
7319
7343
|
];
|
|
7320
|
-
const getComponentCss$
|
|
7344
|
+
const getComponentCss$V = (size, offset) => {
|
|
7321
7345
|
return getCss({
|
|
7322
7346
|
'@global': {
|
|
7323
7347
|
':host': addImportantToEachRule({
|
|
@@ -7337,7 +7361,7 @@ const getComponentCss$T = (size, offset) => {
|
|
|
7337
7361
|
};
|
|
7338
7362
|
|
|
7339
7363
|
const gutter = `calc(${gridGap} / -2)`;
|
|
7340
|
-
const getComponentCss$
|
|
7364
|
+
const getComponentCss$U = (direction, wrap) => {
|
|
7341
7365
|
return getCss({
|
|
7342
7366
|
'@global': {
|
|
7343
7367
|
':host': {
|
|
@@ -7363,7 +7387,7 @@ const sizeMap$3 = {
|
|
|
7363
7387
|
'x-large': fontSizeHeadingXLarge,
|
|
7364
7388
|
'xx-large': fontSizeHeadingXXLarge,
|
|
7365
7389
|
};
|
|
7366
|
-
const getComponentCss$
|
|
7390
|
+
const getComponentCss$T = (size, align, color, ellipsis, theme) => {
|
|
7367
7391
|
return getCss({
|
|
7368
7392
|
'@global': {
|
|
7369
7393
|
':host': {
|
|
@@ -7423,7 +7447,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
7423
7447
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
7424
7448
|
};
|
|
7425
7449
|
};
|
|
7426
|
-
const getComponentCss$
|
|
7450
|
+
const getComponentCss$S = (variant, align, color, ellipsis, theme) => {
|
|
7427
7451
|
return getCss({
|
|
7428
7452
|
'@global': {
|
|
7429
7453
|
':host': {
|
|
@@ -7534,7 +7558,7 @@ const isFlippableIcon = (name, source) => {
|
|
|
7534
7558
|
name === 'return' ||
|
|
7535
7559
|
name === 'send'));
|
|
7536
7560
|
};
|
|
7537
|
-
const getComponentCss$
|
|
7561
|
+
const getComponentCss$R = (name, source, color, size, theme) => {
|
|
7538
7562
|
const isColorInherit = color === 'inherit';
|
|
7539
7563
|
const isSizeInherit = size === 'inherit';
|
|
7540
7564
|
const isDark = isThemeDark(theme);
|
|
@@ -7653,7 +7677,7 @@ const getHeadingJssStyle = (theme) => ({
|
|
|
7653
7677
|
...headingSmallStyle,
|
|
7654
7678
|
...getTextJssStyle(theme),
|
|
7655
7679
|
});
|
|
7656
|
-
const getComponentCss$
|
|
7680
|
+
const getComponentCss$Q = (state, hasAction, hasClose, theme) => {
|
|
7657
7681
|
return getCss({
|
|
7658
7682
|
'@global': {
|
|
7659
7683
|
':host': {
|
|
@@ -7700,9 +7724,9 @@ const getComponentCss$O = (state, hasAction, hasClose, theme) => {
|
|
|
7700
7724
|
/**
|
|
7701
7725
|
* @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."}
|
|
7702
7726
|
*/
|
|
7703
|
-
const getComponentCss$
|
|
7727
|
+
const getComponentCss$P = (disabled, loading, hideLabel, state, compact, readOnly, theme, controls) => {
|
|
7704
7728
|
return getCss({
|
|
7705
|
-
...getFunctionalComponentInputBaseStyles(disabled, hideLabel, state, compact, readOnly, theme, {
|
|
7729
|
+
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7706
7730
|
textOverflow: 'ellipsis',
|
|
7707
7731
|
MozAppearance: 'textfield',
|
|
7708
7732
|
'&::-webkit-inner-spin-button, &::-webkit-outer-spin-button': {
|
|
@@ -7725,9 +7749,9 @@ const getComponentCss$N = (disabled, hideLabel, state, compact, readOnly, theme,
|
|
|
7725
7749
|
/**
|
|
7726
7750
|
* @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."}
|
|
7727
7751
|
*/
|
|
7728
|
-
const getComponentCss$
|
|
7752
|
+
const getComponentCss$O = (disabled, loading, hideLabel, state, toggle, compact, readOnly, theme) => {
|
|
7729
7753
|
return getCss({
|
|
7730
|
-
...getFunctionalComponentInputBaseStyles(disabled, hideLabel, state, compact, readOnly, theme, {
|
|
7754
|
+
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7731
7755
|
'&[type="text"]': {
|
|
7732
7756
|
textOverflow: 'ellipsis',
|
|
7733
7757
|
},
|
|
@@ -7741,6 +7765,56 @@ const getComponentCss$M = (disabled, hideLabel, state, toggle, compact, readOnly
|
|
|
7741
7765
|
});
|
|
7742
7766
|
};
|
|
7743
7767
|
|
|
7768
|
+
// CSS Variables defined in base input
|
|
7769
|
+
/**
|
|
7770
|
+
* @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."}
|
|
7771
|
+
*/
|
|
7772
|
+
/**
|
|
7773
|
+
* @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."}
|
|
7774
|
+
*/
|
|
7775
|
+
const getComponentCss$N = (disabled, loading, hideLabel, state, compact, readOnly, theme, clear) => {
|
|
7776
|
+
return getCss({
|
|
7777
|
+
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7778
|
+
textOverflow: 'ellipsis',
|
|
7779
|
+
'&[type="search"]::-webkit-search-cancel-button': {
|
|
7780
|
+
display: 'none',
|
|
7781
|
+
},
|
|
7782
|
+
}),
|
|
7783
|
+
...(clear && {
|
|
7784
|
+
button: {
|
|
7785
|
+
padding: `var(${cssVarButtonPurePadding})`,
|
|
7786
|
+
margin: `var(${cssVarButtonPureMargin})`,
|
|
7787
|
+
},
|
|
7788
|
+
}),
|
|
7789
|
+
});
|
|
7790
|
+
};
|
|
7791
|
+
|
|
7792
|
+
// CSS Variables defined in base input
|
|
7793
|
+
/**
|
|
7794
|
+
* @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."}
|
|
7795
|
+
*/
|
|
7796
|
+
/**
|
|
7797
|
+
* @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."}
|
|
7798
|
+
*/
|
|
7799
|
+
const getComponentCss$M = (disabled, loading, hideLabel, state, compact, readOnly, theme, counter) => {
|
|
7800
|
+
return getCss({
|
|
7801
|
+
...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, theme, {
|
|
7802
|
+
textOverflow: 'ellipsis',
|
|
7803
|
+
MozAppearance: 'textfield',
|
|
7804
|
+
'&::-webkit-inner-spin-button, &::-webkit-outer-spin-button': {
|
|
7805
|
+
WebkitAppearance: 'none',
|
|
7806
|
+
},
|
|
7807
|
+
}),
|
|
7808
|
+
...(counter && {
|
|
7809
|
+
counter: {
|
|
7810
|
+
...getUnitCounterJssStyle(disabled, readOnly, theme),
|
|
7811
|
+
cursor: 'text',
|
|
7812
|
+
},
|
|
7813
|
+
}),
|
|
7814
|
+
'sr-only': getHiddenTextJssStyle(),
|
|
7815
|
+
});
|
|
7816
|
+
};
|
|
7817
|
+
|
|
7744
7818
|
const getComponentCss$L = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
7745
7819
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme), hasSlottedAnchor && {
|
|
7746
7820
|
'@global': addImportantToEachRule({
|
|
@@ -9801,7 +9875,8 @@ const getComponentCss$r = (theme) => {
|
|
|
9801
9875
|
},
|
|
9802
9876
|
...addImportantToEachRule({
|
|
9803
9877
|
':host': {
|
|
9804
|
-
|
|
9878
|
+
scrollMarginBlockStart: `calc(max(2px, var(${cssVarInternalSelectOptionScaling}, 1) * 6px) + 36px)`, // 36px input height + 6px padding
|
|
9879
|
+
scrollMarginBlockEnd: `max(2px, var(${cssVarInternalSelectOptionScaling}, 1) * 6px)`, // Aligns option when list is scrolled by navigating with keyboard
|
|
9805
9880
|
...hostHiddenStyles,
|
|
9806
9881
|
},
|
|
9807
9882
|
'::slotted(img)': getButtonImageJssStyle,
|
|
@@ -9818,6 +9893,8 @@ const getComponentCss$r = (theme) => {
|
|
|
9818
9893
|
const cssVarInternalSelectScaling = '--p-internal-select-scaling';
|
|
9819
9894
|
const getComponentCss$q = (isOpen, isDisabled, hideLabel, state, compact, theme, hasSlottedImage) => {
|
|
9820
9895
|
const scalingVar = `var(${cssVarInternalSelectScaling}, ${compact ? 0.5 : 1})`;
|
|
9896
|
+
const { contrastMediumColor: contrastMediumColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark } = getThemedColors('dark');
|
|
9897
|
+
const { contrastMediumColor, backgroundColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
9821
9898
|
return getCss({
|
|
9822
9899
|
'@global': {
|
|
9823
9900
|
// @keyframes fade-in
|
|
@@ -9847,6 +9924,29 @@ const getComponentCss$q = (isOpen, isDisabled, hideLabel, state, compact, theme,
|
|
|
9847
9924
|
// 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.
|
|
9848
9925
|
minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
|
|
9849
9926
|
},
|
|
9927
|
+
filter: {
|
|
9928
|
+
position: 'sticky',
|
|
9929
|
+
top: `calc(max(2px, ${scalingVar} * 6px) * -1)`,
|
|
9930
|
+
padding: `max(2px, ${scalingVar} * 6px)`,
|
|
9931
|
+
margin: `calc(max(2px, ${scalingVar} * 6px) * -1)`,
|
|
9932
|
+
background: isThemeDark(theme) ? backgroundSurfaceColor : backgroundColor,
|
|
9933
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9934
|
+
background: backgroundSurfaceColorDark,
|
|
9935
|
+
}),
|
|
9936
|
+
zIndex: 1,
|
|
9937
|
+
},
|
|
9938
|
+
options: {
|
|
9939
|
+
display: 'flex',
|
|
9940
|
+
flexDirection: 'column',
|
|
9941
|
+
gap: `max(2px, ${scalingVar} * ${spacingStaticSmall})`,
|
|
9942
|
+
},
|
|
9943
|
+
'no-results': {
|
|
9944
|
+
...getOptionJssStyle('select-option', scalingVar, theme),
|
|
9945
|
+
color: contrastMediumColor,
|
|
9946
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9947
|
+
color: contrastMediumColorDark,
|
|
9948
|
+
}),
|
|
9949
|
+
},
|
|
9850
9950
|
icon: getIconJssStyle('select', isOpen),
|
|
9851
9951
|
'sr-only': getHiddenTextJssStyle(),
|
|
9852
9952
|
// .label / .required
|
|
@@ -11397,4 +11497,4 @@ const getComponentCss = (size, theme) => {
|
|
|
11397
11497
|
});
|
|
11398
11498
|
};
|
|
11399
11499
|
|
|
11400
|
-
export { cssVarButtonPureMargin, cssVarButtonPurePadding, cssVarInternalInputBaseScaling, getComponentCss$
|
|
11500
|
+
export { cssVarButtonPureMargin, cssVarButtonPurePadding, cssVarInternalInputBaseScaling, getComponentCss$1f as getAccordionCss, getComponentCss$1e as getBannerCss, getComponentCss$1a as getButtonCss, getComponentCss$1d as getButtonGroupCss, getComponentCss$1c as getButtonPureCss, getComponentCss$1b as getButtonTileCss, getComponentCss$19 as getCanvasCss, getComponentCss$18 as getCarouselCss, getComponentCss$16 as getCheckboxCss, getComponentCss$17 as getCheckboxWrapperCss, getComponentCss$15 as getContentWrapperCss, getComponentCss$14 as getCrestCss, getComponentCss$13 as getDisplayCss, getComponentCss$12 as getDividerCss, getComponentCss$11 as getDrilldownCss, getComponentCss$10 as getDrilldownItemCss, getComponentCss$$ as getDrilldownLinkCss, getComponentCss$Z as getFieldsetCss, getComponentCss$_ as getFieldsetWrapperCss, getComponentCss$X as getFlexCss, getComponentCss$Y as getFlexItemCss, getComponentCss$W as getFlyoutCss, getFunctionalComponentInputBaseStyles, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$U as getGridCss, getComponentCss$V as getGridItemCss, getComponentCss$T as getHeadingCss, getComponentCss$S as getHeadlineCss, getComponentCss$R as getIconCss, getComponentCss$Q as getInlineNotificationCss, getComponentCss$P as getInputNumberCss, getComponentCss$O as getInputPasswordCss, getComponentCss$N as getInputSearchCss, getComponentCss$M as getInputTextCss, getComponentCss$K as getLinkCss, getComponentCss$L as getLinkPureCss, getComponentCss$K as getLinkSocialCss, getComponentCss$H as getLinkTileCss, getComponentCss$J as getLinkTileModelSignatureCss, getComponentCss$I as getLinkTileProductCss, getComponentCss$G as getMarqueCss, getComponentCss$F as getModalCss, getComponentCss$E as getModelSignatureCss, getComponentCss$C as getMultiSelectCss, getComponentCss$D as getMultiSelectOptionCss, getComponentCss$B as getOptgroupCss, getComponentCss$A as getPaginationCss, getComponentCss$z as getPinCodeCss, getComponentCss$y as getPopoverCss, getComponentCss$x as getRadioButtonWrapperCss, getScalingVar, getComponentCss$w as getScrollerCss, getComponentCss$u as getSegmentedControlCss, getComponentCss$v as getSegmentedControlItemCss, getComponentCss$q as getSelectCss, getComponentCss$r as getSelectOptionCss, getComponentCss$s as getSelectWrapperCss, getComponentCss$t as getSelectWrapperDropdownCss, getComponentCss$p as getSheetCss, getComponentCss$o as getSpinnerCss, getComponentCss$m as getStepperHorizontalCss, getComponentCss$n as getStepperHorizontalItemCss, getComponentCss$l as getSwitchCss, getComponentCss$k as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$j as getTableCss, getComponentCss$h as getTableHeadCellCss, getComponentCss$f as getTableHeadCss, getComponentCss$g as getTableHeadRowCss, getComponentCss$e as getTableRowCss, getComponentCss$d as getTabsBarCss, getComponentCss$b as getTabsCss, getComponentCss$c as getTabsItemCss, getComponentCss$9 as getTagCss, getComponentCss$a as getTagDismissibleCss, getComponentCss$5 as getTextCss, getComponentCss$8 as getTextFieldWrapperCss, getComponentCss$7 as getTextListCss, getComponentCss$6 as getTextListItemCss, getComponentCss$3 as getTextareaCss, getComponentCss$4 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
|
|
@@ -3271,21 +3271,10 @@ const getComboboxAriaAttributes = (isOpen, isRequired, labelId, descriptionId, d
|
|
|
3271
3271
|
'aria-controls': dropdownId,
|
|
3272
3272
|
};
|
|
3273
3273
|
};
|
|
3274
|
-
|
|
3275
|
-
const getListAriaAttributes = (label, isRequired, hasFilter, isOpen, multiple = false) => {
|
|
3274
|
+
const getComboboxFilterAriaAttributes = () => {
|
|
3276
3275
|
return {
|
|
3277
|
-
|
|
3278
|
-
'aria-
|
|
3279
|
-
...(isRequired &&
|
|
3280
|
-
!hasFilter && {
|
|
3281
|
-
'aria-required': 'true',
|
|
3282
|
-
}),
|
|
3283
|
-
...(!isOpen && {
|
|
3284
|
-
'aria-hidden': 'true',
|
|
3285
|
-
}),
|
|
3286
|
-
...(multiple && {
|
|
3287
|
-
'aria-multiselectable': 'true',
|
|
3288
|
-
}),
|
|
3276
|
+
'aria-autocomplete': 'list',
|
|
3277
|
+
'aria-expanded': 'true',
|
|
3289
3278
|
};
|
|
3290
3279
|
};
|
|
3291
3280
|
|
|
@@ -3905,4 +3894,4 @@ const getTextTagType = (host, tag) => {
|
|
|
3905
3894
|
return tag;
|
|
3906
3895
|
};
|
|
3907
3896
|
|
|
3908
|
-
export { DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, ItemType, TEXT_TAGS, _hasShowPickerSupport, anchorSlot, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildIconUrl, buildImgSrc, buildSrcSet, createPaginationItems, createRange, crestSize, debounce, descriptionId, displaySizeToTagMap, getButtonAriaAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getClosestHTMLElement, getComboboxAriaAttributes, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getHTMLElement, getHasNativePopoverSupport, getHeadingTagType, getHeadlineTagType, getIconColor, getInlineNotificationIconName, getInnerManifest,
|
|
3897
|
+
export { DISPLAY_TAGS, HEADING_TAGS, HEADLINE_TAGS, ItemType, TEXT_TAGS, _hasShowPickerSupport, anchorSlot, attributeMutationMap, buildCrestImgSrc, buildCrestSrcSet, buildIconUrl, buildImgSrc, buildSrcSet, createPaginationItems, createRange, crestSize, debounce, descriptionId, displaySizeToTagMap, getButtonAriaAttributes, getButtonBaseAriaAttributes, getButtonPureAriaAttributes, getCDNBaseURL, getClosestHTMLElement, getComboboxAriaAttributes, getComboboxFilterAriaAttributes, getContentAriaAttributes, getCurrentActivePage, getDirectChildHTMLElement, getDisplayTagType, getHTMLElement, getHasNativePopoverSupport, getHeadingTagType, getHeadlineTagType, getIconColor, getInlineNotificationIconName, getInnerManifest, getSegmentedControlItemAriaAttributes, getSelectedOptionMap, getSelectedOptionString, getSelectedOptionValues, getStepperHorizontalIconName, getSvgUrl, getSwitchButtonAriaAttributes, getTagName, getTagNameWithoutPrefix, getTextTagType, getTotalPages, hasDocument, hasLocateAction, hasSpecificDirectChildTag, hasVisibleIcon, hasWindow$1 as hasWindow, headerSlot, isCurrentInput, isCustomDropdown, isDisabledOrLoading, isElementOfKind, isInfinitePagination, isListTypeOrdered, isScrollable, isSortable, isStateCompleteOrWarning, isTouchDevice, isType, isUrl, isWithinForm, labelId, observedNodesMap, parseAndGetAriaAttributes, parseJSONAttribute, scrollAreaClass, showCustomCalendarOrTimeIndicator, supportsConstructableStylesheets, supportsNativePopover, tempDiv, tempIcon, tempLabel, traverseTreeAndUpdateState, updateDrilldownItemState };
|
|
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMerge
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRInputNumber } from '../dsr-components/input-number.mjs';
|
|
7
7
|
|
|
8
|
-
const PInputNumber = /*#__PURE__*/ forwardRef(({ autoComplete
|
|
8
|
+
const PInputNumber = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, controls = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, max, message = '', min, name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, state = 'none', step = 1, theme, value = '', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef(undefined);
|
|
10
10
|
useEventCallback(elementRef, 'blur', onBlur);
|
|
11
11
|
useEventCallback(elementRef, 'change', onChange);
|
|
12
12
|
useEventCallback(elementRef, 'input', onInput);
|
|
13
13
|
const WebComponentTag = usePrefix('p-input-number');
|
|
14
|
-
const propsToSync = [autoComplete, compact, controls, description, disabled, form, hideLabel, label, max, message, min, name, placeholder, readOnly, required, state, step, theme || useTheme(), value];
|
|
14
|
+
const propsToSync = [autoComplete, compact, controls, description, disabled, form, hideLabel, label, loading, max, message, min, name, placeholder, readOnly, required, state, step, theme || useTheme(), value];
|
|
15
15
|
useBrowserLayoutEffect(() => {
|
|
16
16
|
const { current } = elementRef;
|
|
17
|
-
['autoComplete', 'compact', 'controls', 'description', 'disabled', 'form', 'hideLabel', 'label', 'max', 'message', 'min', 'name', 'placeholder', 'readOnly', 'required', 'state', 'step', 'theme', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
17
|
+
['autoComplete', 'compact', 'controls', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'max', 'message', 'min', 'name', 'placeholder', 'readOnly', 'required', 'state', 'step', 'theme', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
18
18
|
}, propsToSync);
|
|
19
19
|
const props = {
|
|
20
20
|
...rest,
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
...(!process.browser
|
|
23
23
|
? {
|
|
24
|
-
children: (jsx(DSRInputNumber, { autoComplete, compact, controls, description, disabled, form, hideLabel, label, max, message, min, name, placeholder, readOnly, required, state, step, theme: theme || useTheme(), value, children })),
|
|
24
|
+
children: (jsx(DSRInputNumber, { autoComplete, compact, controls, description, disabled, form, hideLabel, label, loading, max, message, min, name, placeholder, readOnly, required, state, step, theme: theme || useTheme(), value, children })),
|
|
25
25
|
}
|
|
26
26
|
: {
|
|
27
27
|
children,
|
|
@@ -5,23 +5,23 @@ import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMerge
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRInputPassword } from '../dsr-components/input-password.mjs';
|
|
7
7
|
|
|
8
|
-
const PInputPassword = /*#__PURE__*/ forwardRef(({ autoComplete
|
|
8
|
+
const PInputPassword = /*#__PURE__*/ forwardRef(({ autoComplete, compact = false, description = '', disabled = false, form, hideLabel = false, label = '', loading = false, maxLength, message = '', minLength, name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, state = 'none', theme, toggle = false, value = '', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef(undefined);
|
|
10
10
|
useEventCallback(elementRef, 'blur', onBlur);
|
|
11
11
|
useEventCallback(elementRef, 'change', onChange);
|
|
12
12
|
useEventCallback(elementRef, 'input', onInput);
|
|
13
13
|
const WebComponentTag = usePrefix('p-input-password');
|
|
14
|
-
const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, label, maxLength, message, minLength, name, placeholder, readOnly, required, state, theme || useTheme(), toggle, value];
|
|
14
|
+
const propsToSync = [autoComplete, compact, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, state, theme || useTheme(), toggle, value];
|
|
15
15
|
useBrowserLayoutEffect(() => {
|
|
16
16
|
const { current } = elementRef;
|
|
17
|
-
['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'maxLength', 'message', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'state', 'theme', 'toggle', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
17
|
+
['autoComplete', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'label', 'loading', 'maxLength', 'message', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'state', 'theme', 'toggle', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
18
18
|
}, propsToSync);
|
|
19
19
|
const props = {
|
|
20
20
|
...rest,
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
...(!process.browser
|
|
23
23
|
? {
|
|
24
|
-
children: (jsx(DSRInputPassword, { autoComplete, compact, description, disabled, form, hideLabel, label, maxLength, message, minLength, name, placeholder, readOnly, required, state, theme: theme || useTheme(), toggle, value, children })),
|
|
24
|
+
children: (jsx(DSRInputPassword, { autoComplete, compact, description, disabled, form, hideLabel, label, loading, maxLength, message, minLength, name, placeholder, readOnly, required, state, theme: theme || useTheme(), toggle, value, children })),
|
|
25
25
|
}
|
|
26
26
|
: {
|
|
27
27
|
children,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, useRef } from 'react';
|
|
4
|
+
import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
|
+
import { syncRef } from '../../utils.mjs';
|
|
6
|
+
import { DSRInputSearch } from '../dsr-components/input-search.mjs';
|
|
7
|
+
|
|
8
|
+
const PInputSearch = /*#__PURE__*/ forwardRef(({ autoComplete, clear = false, compact = false, description = '', disabled = false, form, hideLabel = false, indicator = true, label = '', loading = false, message = '', name, onBlur, onChange, onInput, placeholder = '', readOnly = false, required = false, state = 'none', theme, value = '', className, children, ...rest }, ref) => {
|
|
9
|
+
const elementRef = useRef(undefined);
|
|
10
|
+
useEventCallback(elementRef, 'blur', onBlur);
|
|
11
|
+
useEventCallback(elementRef, 'change', onChange);
|
|
12
|
+
useEventCallback(elementRef, 'input', onInput);
|
|
13
|
+
const WebComponentTag = usePrefix('p-input-search');
|
|
14
|
+
const propsToSync = [autoComplete, clear, compact, description, disabled, form, hideLabel, indicator, label, loading, message, name, placeholder, readOnly, required, state, theme || useTheme(), value];
|
|
15
|
+
useBrowserLayoutEffect(() => {
|
|
16
|
+
const { current } = elementRef;
|
|
17
|
+
['autoComplete', 'clear', 'compact', 'description', 'disabled', 'form', 'hideLabel', 'indicator', 'label', 'loading', 'message', 'name', 'placeholder', 'readOnly', 'required', 'state', 'theme', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
18
|
+
}, propsToSync);
|
|
19
|
+
const props = {
|
|
20
|
+
...rest,
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
...(!process.browser
|
|
23
|
+
? {
|
|
24
|
+
children: (jsx(DSRInputSearch, { autoComplete, clear, compact, description, disabled, form, hideLabel, indicator, label, loading, message, name, placeholder, readOnly, required, state, theme: theme || useTheme(), value, children })),
|
|
25
|
+
}
|
|
26
|
+
: {
|
|
27
|
+
children,
|
|
28
|
+
suppressHydrationWarning: true,
|
|
29
|
+
}),
|
|
30
|
+
'data-ssr': '',
|
|
31
|
+
class: useMergedClass(elementRef, className),
|
|
32
|
+
ref: syncRef(elementRef, ref)
|
|
33
|
+
};
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
return jsx(WebComponentTag, { ...props });
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export { PInputSearch };
|