@porsche-design-system/components-react 3.24.0 → 3.25.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 +25 -0
- package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
- package/cjs/lib/components/button.wrapper.cjs +3 -3
- package/cjs/lib/components/sheet.wrapper.cjs +29 -0
- package/cjs/public-api.cjs +2 -0
- package/esm/lib/components/button-pure.wrapper.d.ts +8 -0
- package/esm/lib/components/button-pure.wrapper.mjs +3 -3
- package/esm/lib/components/button.wrapper.d.ts +8 -0
- package/esm/lib/components/button.wrapper.mjs +3 -3
- package/esm/lib/components/index.d.ts +1 -0
- package/esm/lib/components/sheet.wrapper.d.ts +72 -0
- package/esm/lib/components/sheet.wrapper.mjs +27 -0
- package/esm/lib/types.d.ts +7 -0
- package/esm/public-api.mjs +1 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +163 -109
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +3 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +39 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +3 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +3 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +113 -60
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/sheet.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +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 +4 -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 +4 -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 +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel.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/link-pure.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +37 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/button.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/index.d.ts +1 -0
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +72 -0
- package/ssr/esm/lib/dsr-components/button-pure.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/button.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/carousel.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/sheet.d.ts +14 -0
- package/ssr/esm/lib/types.d.ts +7 -0
|
@@ -3938,7 +3938,7 @@ const formatObjectOutput = (value) => {
|
|
|
3938
3938
|
};
|
|
3939
3939
|
`value, ${formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {})).replace(/"/g, '')}`;
|
|
3940
3940
|
|
|
3941
|
-
const getComponentCss$
|
|
3941
|
+
const getComponentCss$1a = (size, compact, open, theme, sticky) => {
|
|
3942
3942
|
const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
|
|
3943
3943
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
|
|
3944
3944
|
const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
|
|
@@ -4107,7 +4107,7 @@ const cssVariableTop = '--p-banner-position-top';
|
|
|
4107
4107
|
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4108
4108
|
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4109
4109
|
const topBottomFallback = '56px';
|
|
4110
|
-
const getComponentCss$
|
|
4110
|
+
const getComponentCss$19 = (isOpen) => {
|
|
4111
4111
|
return getCss({
|
|
4112
4112
|
'@global': {
|
|
4113
4113
|
':host': {
|
|
@@ -4179,7 +4179,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4179
4179
|
return groupDirectionJssStyles[direction];
|
|
4180
4180
|
};
|
|
4181
4181
|
|
|
4182
|
-
const getComponentCss$
|
|
4182
|
+
const getComponentCss$18 = (direction) => {
|
|
4183
4183
|
return getCss({
|
|
4184
4184
|
'@global': {
|
|
4185
4185
|
':host': {
|
|
@@ -4332,7 +4332,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
|
|
|
4332
4332
|
};
|
|
4333
4333
|
};
|
|
4334
4334
|
|
|
4335
|
-
const getComponentCss$
|
|
4335
|
+
const getComponentCss$17 = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
|
|
4336
4336
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4337
4337
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
|
|
4338
4338
|
root: {
|
|
@@ -4370,7 +4370,7 @@ const getFontWeight = (weight) => {
|
|
|
4370
4370
|
return fontWeightMap[weight];
|
|
4371
4371
|
};
|
|
4372
4372
|
|
|
4373
|
-
const getComponentCss$
|
|
4373
|
+
const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
|
|
4374
4374
|
const isTopAligned = align === 'top';
|
|
4375
4375
|
return getCss({
|
|
4376
4376
|
'@global': {
|
|
@@ -4640,7 +4640,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4640
4640
|
};
|
|
4641
4641
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4642
4642
|
};
|
|
4643
|
-
const getComponentCss$
|
|
4643
|
+
const getComponentCss$15 = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
|
|
4644
4644
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4645
4645
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4646
4646
|
const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
|
|
@@ -4716,7 +4716,7 @@ const mediaQueryS$1 = getMediaQueryMin('s');
|
|
|
4716
4716
|
const mediaQueryM = getMediaQueryMin('m');
|
|
4717
4717
|
// others
|
|
4718
4718
|
const spacingBase = gridGap.replace('36px', '24px');
|
|
4719
|
-
const getComponentCss$
|
|
4719
|
+
const getComponentCss$14 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
4720
4720
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, contrastLowColor } = getThemedColors(theme);
|
|
4721
4721
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
4722
4722
|
return getCss({
|
|
@@ -5089,7 +5089,7 @@ const getGradient$1 = (theme, gradientColorTheme) => {
|
|
|
5089
5089
|
`rgba(${gradientColor},0.3) 68%,` +
|
|
5090
5090
|
`rgba(${gradientColor},0)`);
|
|
5091
5091
|
};
|
|
5092
|
-
const getComponentCss$
|
|
5092
|
+
const getComponentCss$13 = (gradientColor, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation) => {
|
|
5093
5093
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
5094
5094
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
5095
5095
|
const { canvasTextColor } = getHighContrastColors();
|
|
@@ -5545,7 +5545,7 @@ const getCheckedSVGBackgroundImage$2 = (fill) => {
|
|
|
5545
5545
|
const getIndeterminateSVGBackgroundImage$1 = (fill) => {
|
|
5546
5546
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5547
5547
|
};
|
|
5548
|
-
const getComponentCss$
|
|
5548
|
+
const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
5549
5549
|
const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
5550
5550
|
const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
|
|
5551
5551
|
const indeterminateIconColor = escapeHashCharacter(getThemedColors(theme).primaryColor);
|
|
@@ -5648,7 +5648,7 @@ const getIndeterminateSVGBackgroundImage = (fill) => {
|
|
|
5648
5648
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5649
5649
|
};
|
|
5650
5650
|
const cssVarInternalCheckboxScaling = '--p-internal-checkbox-scaling';
|
|
5651
|
-
const getComponentCss$
|
|
5651
|
+
const getComponentCss$11 = (hideLabel, state, isDisabled, isLoading, compact, theme) => {
|
|
5652
5652
|
const { primaryColor, contrastMediumColor, contrastHighColor, disabledColor, focusColor } = getThemedColors(theme);
|
|
5653
5653
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
5654
5654
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -5889,7 +5889,7 @@ const widthMap = {
|
|
|
5889
5889
|
basic: gridBasicOffset,
|
|
5890
5890
|
extended: gridExtendedOffset,
|
|
5891
5891
|
};
|
|
5892
|
-
const getComponentCss
|
|
5892
|
+
const getComponentCss$10 = (width) => {
|
|
5893
5893
|
return getCss({
|
|
5894
5894
|
'@global': {
|
|
5895
5895
|
':host': {
|
|
@@ -5931,7 +5931,7 @@ const getDimensionStyle = {
|
|
|
5931
5931
|
width: 'inherit',
|
|
5932
5932
|
height: 'inherit',
|
|
5933
5933
|
};
|
|
5934
|
-
const getComponentCss
|
|
5934
|
+
const getComponentCss$$ = () => {
|
|
5935
5935
|
return getCss({
|
|
5936
5936
|
'@global': {
|
|
5937
5937
|
':host': {
|
|
@@ -6030,7 +6030,7 @@ const sizeMap$4 = {
|
|
|
6030
6030
|
medium: fontSizeDisplayMedium,
|
|
6031
6031
|
large: fontSizeDisplayLarge,
|
|
6032
6032
|
};
|
|
6033
|
-
const getComponentCss$
|
|
6033
|
+
const getComponentCss$_ = (size, align, color, ellipsis, theme) => {
|
|
6034
6034
|
return getCss({
|
|
6035
6035
|
'@global': {
|
|
6036
6036
|
':host': {
|
|
@@ -6048,7 +6048,7 @@ const getComponentCss$Z = (size, align, color, ellipsis, theme) => {
|
|
|
6048
6048
|
});
|
|
6049
6049
|
};
|
|
6050
6050
|
|
|
6051
|
-
const getComponentCss$
|
|
6051
|
+
const getComponentCss$Z = (color, orientation, theme) => {
|
|
6052
6052
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
6053
6053
|
const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
|
|
6054
6054
|
const colorMap = {
|
|
@@ -6091,7 +6091,7 @@ const getComponentCss$Y = (color, orientation, theme) => {
|
|
|
6091
6091
|
});
|
|
6092
6092
|
};
|
|
6093
6093
|
|
|
6094
|
-
const getComponentCss$
|
|
6094
|
+
const getComponentCss$Y = (state, labelSize, hasLabel, theme) => {
|
|
6095
6095
|
return getCss({
|
|
6096
6096
|
'@global': {
|
|
6097
6097
|
':host': {
|
|
@@ -6128,7 +6128,7 @@ const getComponentCss$X = (state, labelSize, hasLabel, theme) => {
|
|
|
6128
6128
|
});
|
|
6129
6129
|
};
|
|
6130
6130
|
|
|
6131
|
-
const getComponentCss$
|
|
6131
|
+
const getComponentCss$X = (state, labelSize, hasLabel, theme) => {
|
|
6132
6132
|
return getCss({
|
|
6133
6133
|
'@global': {
|
|
6134
6134
|
':host': {
|
|
@@ -6175,7 +6175,7 @@ const flexItemWidths = {
|
|
|
6175
6175
|
full: 100,
|
|
6176
6176
|
auto: 'auto',
|
|
6177
6177
|
};
|
|
6178
|
-
const getComponentCss$
|
|
6178
|
+
const getComponentCss$W = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
6179
6179
|
return getCss({
|
|
6180
6180
|
'@global': {
|
|
6181
6181
|
':host': addImportantToEachRule({
|
|
@@ -6197,7 +6197,7 @@ const getComponentCss$V = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
6197
6197
|
});
|
|
6198
6198
|
};
|
|
6199
6199
|
|
|
6200
|
-
const getComponentCss$
|
|
6200
|
+
const getComponentCss$V = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
6201
6201
|
return getCss({
|
|
6202
6202
|
'@global': {
|
|
6203
6203
|
':host': {
|
|
@@ -6233,7 +6233,7 @@ const scrollerBackground = {
|
|
|
6233
6233
|
dark: 'rgba(0,0,0,.01)',
|
|
6234
6234
|
auto: 'rgba(255,255,255,.01)',
|
|
6235
6235
|
};
|
|
6236
|
-
const getComponentCss$
|
|
6236
|
+
const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme) => {
|
|
6237
6237
|
const { backgroundColor, backgroundSurfaceColor, backgroundShadingColor } = getThemedColors(theme);
|
|
6238
6238
|
const { backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, backgroundShadingColor: backgroundShadingColorDark, } = getThemedColors('dark');
|
|
6239
6239
|
return getCss({
|
|
@@ -6487,7 +6487,7 @@ const getComponentCss$T = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6487
6487
|
});
|
|
6488
6488
|
};
|
|
6489
6489
|
|
|
6490
|
-
const getComponentCss$
|
|
6490
|
+
const getComponentCss$T = (isPrimary, isSecondary, isCascade, theme) => {
|
|
6491
6491
|
const { primaryColor, backgroundColor } = getThemedColors(theme);
|
|
6492
6492
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark } = getThemedColors('dark');
|
|
6493
6493
|
return getCss({
|
|
@@ -6879,7 +6879,7 @@ const getDialogStickyAreaJssStyle = (area, theme) => {
|
|
|
6879
6879
|
const cssVariableWidth$2 = '--p-flyout-width';
|
|
6880
6880
|
// TODO: we shouldn't expose --p-flyout-max-width
|
|
6881
6881
|
const cssVariableMaxWidth = '--p-flyout-max-width';
|
|
6882
|
-
const getComponentCss$
|
|
6882
|
+
const getComponentCss$S = (isOpen, position, hasHeader, hasFooter, hasSubFooter, footerBehavior, theme) => {
|
|
6883
6883
|
const isPositionStart = position === 'start' || position === 'left';
|
|
6884
6884
|
const isFooterFixed = footerBehavior === 'fixed';
|
|
6885
6885
|
return getCss({
|
|
@@ -6989,7 +6989,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
6989
6989
|
const gridItemWidths = [
|
|
6990
6990
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
6991
6991
|
];
|
|
6992
|
-
const getComponentCss$
|
|
6992
|
+
const getComponentCss$R = (size, offset) => {
|
|
6993
6993
|
return getCss({
|
|
6994
6994
|
'@global': {
|
|
6995
6995
|
':host': addImportantToEachRule({
|
|
@@ -7009,7 +7009,7 @@ const getComponentCss$Q = (size, offset) => {
|
|
|
7009
7009
|
};
|
|
7010
7010
|
|
|
7011
7011
|
const gutter = `calc(${gridGap} / -2)`;
|
|
7012
|
-
const getComponentCss$
|
|
7012
|
+
const getComponentCss$Q = (direction, wrap) => {
|
|
7013
7013
|
return getCss({
|
|
7014
7014
|
'@global': {
|
|
7015
7015
|
':host': {
|
|
@@ -7035,7 +7035,7 @@ const sizeMap$3 = {
|
|
|
7035
7035
|
'x-large': fontSizeHeadingXLarge,
|
|
7036
7036
|
'xx-large': fontSizeHeadingXXLarge,
|
|
7037
7037
|
};
|
|
7038
|
-
const getComponentCss$
|
|
7038
|
+
const getComponentCss$P = (size, align, color, ellipsis, theme) => {
|
|
7039
7039
|
return getCss({
|
|
7040
7040
|
'@global': {
|
|
7041
7041
|
':host': {
|
|
@@ -7095,7 +7095,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
7095
7095
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
7096
7096
|
};
|
|
7097
7097
|
};
|
|
7098
|
-
const getComponentCss$
|
|
7098
|
+
const getComponentCss$O = (variant, align, color, ellipsis, theme) => {
|
|
7099
7099
|
return getCss({
|
|
7100
7100
|
'@global': {
|
|
7101
7101
|
':host': {
|
|
@@ -7203,7 +7203,7 @@ const isFlippableIcon = (name, source) => {
|
|
|
7203
7203
|
name === 'logout' ||
|
|
7204
7204
|
name === 'send'));
|
|
7205
7205
|
};
|
|
7206
|
-
const getComponentCss$
|
|
7206
|
+
const getComponentCss$N = (name, source, color, size, theme) => {
|
|
7207
7207
|
const isColorInherit = color === 'inherit';
|
|
7208
7208
|
const isSizeInherit = size === 'inherit';
|
|
7209
7209
|
const isDark = isThemeDark(theme);
|
|
@@ -7322,7 +7322,7 @@ const getHeadingJssStyle = (theme) => ({
|
|
|
7322
7322
|
...headingSmallStyle,
|
|
7323
7323
|
...getTextJssStyle(theme),
|
|
7324
7324
|
});
|
|
7325
|
-
const getComponentCss$
|
|
7325
|
+
const getComponentCss$M = (state, hasAction, hasClose, theme) => {
|
|
7326
7326
|
return getCss({
|
|
7327
7327
|
'@global': {
|
|
7328
7328
|
':host': {
|
|
@@ -7362,7 +7362,7 @@ const getComponentCss$L = (state, hasAction, hasClose, theme) => {
|
|
|
7362
7362
|
});
|
|
7363
7363
|
};
|
|
7364
7364
|
|
|
7365
|
-
const getComponentCss$
|
|
7365
|
+
const getComponentCss$L = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
7366
7366
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme), hasSlottedAnchor && {
|
|
7367
7367
|
'@global': addImportantToEachRule({
|
|
7368
7368
|
'::slotted': {
|
|
@@ -7391,7 +7391,7 @@ const getComponentCss$K = (icon, iconSource, active, stretch, size, hideLabel, a
|
|
|
7391
7391
|
};
|
|
7392
7392
|
|
|
7393
7393
|
const cssVariableInternalLinkScaling = '--p-internal-link-scaling';
|
|
7394
|
-
const getComponentCss$
|
|
7394
|
+
const getComponentCss$K = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, compact, theme) => {
|
|
7395
7395
|
const { linkColor } = getHighContrastColors();
|
|
7396
7396
|
const isPrimary = variant === 'primary';
|
|
7397
7397
|
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, compact, cssVariableInternalLinkScaling, theme), {
|
|
@@ -7433,7 +7433,7 @@ const getComponentCss$J = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
7433
7433
|
}));
|
|
7434
7434
|
};
|
|
7435
7435
|
|
|
7436
|
-
const getComponentCss$
|
|
7436
|
+
const getComponentCss$J = (aspectRatio, weight, // to get deprecated semibold typed
|
|
7437
7437
|
direction, hasDescription) => {
|
|
7438
7438
|
return getCss({
|
|
7439
7439
|
'@global': {
|
|
@@ -7567,7 +7567,7 @@ const getMultilineEllipsis = (lineClamp) => {
|
|
|
7567
7567
|
overflow: 'hidden',
|
|
7568
7568
|
};
|
|
7569
7569
|
};
|
|
7570
|
-
const getComponentCss$
|
|
7570
|
+
const getComponentCss$I = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio, theme) => {
|
|
7571
7571
|
const { primaryColor, contrastHighColor, contrastMediumColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
7572
7572
|
const { primaryColor: primaryColorDark, contrastHighColor: contrastHighColorDark, contrastMediumColor: contrastMediumColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
|
|
7573
7573
|
return getCss({
|
|
@@ -7706,7 +7706,7 @@ const getComponentCss$H = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7706
7706
|
});
|
|
7707
7707
|
};
|
|
7708
7708
|
|
|
7709
|
-
const getComponentCss$
|
|
7709
|
+
const getComponentCss$H = (aspectRatio, size, weight, // to get deprecated semibold typed
|
|
7710
7710
|
background, align, compact, hasGradient, isDisabled) => {
|
|
7711
7711
|
const isTopAligned = align === 'top';
|
|
7712
7712
|
return getCss({
|
|
@@ -7847,7 +7847,7 @@ const baseSizes = {
|
|
|
7847
7847
|
height: '72px',
|
|
7848
7848
|
},
|
|
7849
7849
|
};
|
|
7850
|
-
const getComponentCss$
|
|
7850
|
+
const getComponentCss$G = (size) => {
|
|
7851
7851
|
return getCss({
|
|
7852
7852
|
'@global': {
|
|
7853
7853
|
':host': {
|
|
@@ -7897,7 +7897,7 @@ const cssVariableSpacingBottom = '--p-modal-spacing-bottom'; // TODO: maybe --p-
|
|
|
7897
7897
|
const safeZoneVertical = `calc(${spacingFluidSmall} + ${spacingFluidMedium})`;
|
|
7898
7898
|
const safeZoneHorizontal = `${spacingFluidLarge}`;
|
|
7899
7899
|
const cssClassNameStretchToFullModalWidth = 'stretch-to-full-modal-width';
|
|
7900
|
-
const getComponentCss$
|
|
7900
|
+
const getComponentCss$F = (isOpen, backdrop, fullscreen, hasDismissButton, hasHeader, hasFooter, theme) => {
|
|
7901
7901
|
return getCss({
|
|
7902
7902
|
'@global': {
|
|
7903
7903
|
':host': {
|
|
@@ -8035,7 +8035,7 @@ const getThemedColor = (color, themedColors) => {
|
|
|
8035
8035
|
};
|
|
8036
8036
|
return colorMap[color];
|
|
8037
8037
|
};
|
|
8038
|
-
const getComponentCss$
|
|
8038
|
+
const getComponentCss$E = (model, safeZone, size, color, theme) => {
|
|
8039
8039
|
const { width, height } = MODEL_SIGNATURES_MANIFEST[model];
|
|
8040
8040
|
const isSizeInherit = size === 'inherit';
|
|
8041
8041
|
return getCss({
|
|
@@ -8080,7 +8080,7 @@ const getComponentCss$D = (model, safeZone, size, color, theme) => {
|
|
|
8080
8080
|
};
|
|
8081
8081
|
|
|
8082
8082
|
const cssVariableMultiSelectPaddingInlineStart = '--p-internal-multi-select-option-padding-left';
|
|
8083
|
-
const getComponentCss$
|
|
8083
|
+
const getComponentCss$D = (theme) => {
|
|
8084
8084
|
const { primaryColor, contrastHighColor, backgroundSurfaceColor, disabledColor, contrastLowColor } = getThemedColors(theme);
|
|
8085
8085
|
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, contrastHighColor: contrastHighColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
8086
8086
|
const { highlightColor } = getHighContrastColors();
|
|
@@ -8272,8 +8272,8 @@ const getCalculatedFormElementPaddingHorizontal = (buttonOrIconAmount) => {
|
|
|
8272
8272
|
return `calc(${formElementLayeredGap} + ${formElementPaddingHorizontal} / 2 + (${fontLineHeight} + ${formButtonOrIconPadding} * 2) * ${buttonOrIconAmount})`;
|
|
8273
8273
|
};
|
|
8274
8274
|
// TODO: re-use in textarea-wrapper not only in text-field-wrapper
|
|
8275
|
-
const getUnitCounterJssStyle = (isDisabled, theme) => {
|
|
8276
|
-
const { disabledColor, contrastMediumColor } = getThemedColors(theme);
|
|
8275
|
+
const getUnitCounterJssStyle = (isDisabled, isReadonly, theme) => {
|
|
8276
|
+
const { disabledColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
8277
8277
|
const { disabledColor: disabledColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
8278
8278
|
return {
|
|
8279
8279
|
pointerEvents: 'none',
|
|
@@ -8293,10 +8293,13 @@ const getUnitCounterJssStyle = (isDisabled, theme) => {
|
|
|
8293
8293
|
color: disabledColorDark,
|
|
8294
8294
|
}),
|
|
8295
8295
|
}),
|
|
8296
|
+
...(isReadonly && {
|
|
8297
|
+
color: contrastHighColor,
|
|
8298
|
+
})
|
|
8296
8299
|
};
|
|
8297
8300
|
};
|
|
8298
8301
|
|
|
8299
|
-
const getComponentCss$
|
|
8302
|
+
const getComponentCss$C = (direction, isOpen, isDisabled, hideLabel, state, isNativePopoverCase, theme) => {
|
|
8300
8303
|
const { contrastHighColor } = getThemedColors(theme);
|
|
8301
8304
|
const { contrastHighColor: contrastHighColorDark } = getThemedColors('dark');
|
|
8302
8305
|
return getCss({
|
|
@@ -8483,7 +8486,7 @@ const getListStyles$2 = (isOpen, direction, theme) => {
|
|
|
8483
8486
|
|
|
8484
8487
|
const cssVariableSelectPaddingInlineStart = '--p-internal-select-option-padding-left';
|
|
8485
8488
|
// TODO: Enforce order of slotted text, img
|
|
8486
|
-
const getComponentCss$
|
|
8489
|
+
const getComponentCss$B = (theme) => {
|
|
8487
8490
|
return getCss({
|
|
8488
8491
|
'@global': {
|
|
8489
8492
|
...addImportantToEachRule({
|
|
@@ -8574,7 +8577,7 @@ const getOptionStyles = (theme) => {
|
|
|
8574
8577
|
};
|
|
8575
8578
|
};
|
|
8576
8579
|
|
|
8577
|
-
const getComponentCss$
|
|
8580
|
+
const getComponentCss$A = (isDisabled, theme) => getCss({
|
|
8578
8581
|
'@global': {
|
|
8579
8582
|
':host': addImportantToEachRule({
|
|
8580
8583
|
...colorSchemeStyles,
|
|
@@ -8625,7 +8628,7 @@ const disabledCursorStyle = {
|
|
|
8625
8628
|
pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
|
|
8626
8629
|
};
|
|
8627
8630
|
const hiddenStyle = { display: 'none' };
|
|
8628
|
-
const getComponentCss$
|
|
8631
|
+
const getComponentCss$z = (activePage, pageTotal, showLastPage, theme) => {
|
|
8629
8632
|
const { primaryColor, disabledColor, hoverColor } = getThemedColors(theme);
|
|
8630
8633
|
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
|
|
8631
8634
|
return getCss({
|
|
@@ -8761,7 +8764,7 @@ const removeStyles = (selector, styles) => Object.fromEntries(Object.entries(sty
|
|
|
8761
8764
|
return [key, value];
|
|
8762
8765
|
}));
|
|
8763
8766
|
|
|
8764
|
-
const getComponentCss$
|
|
8767
|
+
const getComponentCss$y = (hideLabel, state, isDisabled, isLoading, length, theme) => {
|
|
8765
8768
|
const inputSize = `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`; // equivalent to calculation of input height within form-styles
|
|
8766
8769
|
const inputStyles = removeStyles('input[readonly]', removeSlottedSelector(getSlottedTextFieldTextareaSelectStyles('input', state, isLoading, theme, {
|
|
8767
8770
|
// TODO: move into getSlottedTextFieldTextareaSelectStyles()
|
|
@@ -8937,7 +8940,7 @@ const getDirectionArrowMap = (theme) => {
|
|
|
8937
8940
|
},
|
|
8938
8941
|
};
|
|
8939
8942
|
};
|
|
8940
|
-
const getComponentCss$
|
|
8943
|
+
const getComponentCss$x = (direction, isNativePopoverCase, theme) => {
|
|
8941
8944
|
const { hoverColor, backgroundColor, primaryColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
8942
8945
|
const { hoverColor: hoverColorDark, primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
|
|
8943
8946
|
const shadowColor = 'rgba(0,0,0,0.3)';
|
|
@@ -9047,7 +9050,7 @@ const getComponentCss$w = (direction, isNativePopoverCase, theme) => {
|
|
|
9047
9050
|
const getCheckedSVGBackgroundImage = (fill) => {
|
|
9048
9051
|
return getInlineSVGBackgroundImage(`<circle fill="${fill}" cx="12" cy="12" r="6"/>`);
|
|
9049
9052
|
};
|
|
9050
|
-
const getComponentCss$
|
|
9053
|
+
const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
9051
9054
|
const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
9052
9055
|
const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
|
|
9053
9056
|
return getCss({
|
|
@@ -9149,7 +9152,7 @@ const getGradient = (theme, gradientColorTheme) => {
|
|
|
9149
9152
|
`rgba(${gradientColor},0)`);
|
|
9150
9153
|
};
|
|
9151
9154
|
const prevNextWrapperWidth = `calc(${fontLineHeight} + 24px)`;
|
|
9152
|
-
const getComponentCss$
|
|
9155
|
+
const getComponentCss$v = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, hasScrollbar, theme) => {
|
|
9153
9156
|
const actionPrevNextStyles = {
|
|
9154
9157
|
position: 'absolute',
|
|
9155
9158
|
top: 0,
|
|
@@ -9282,7 +9285,7 @@ const getColors$2 = (isDisabled, isSelected, theme) => {
|
|
|
9282
9285
|
};
|
|
9283
9286
|
};
|
|
9284
9287
|
const getItemPadding = (hasIconAndSlottedContent) => hasIconAndSlottedContent ? `13px ${ITEM_PADDING} 13px 13px` : `13px ${ITEM_PADDING}`;
|
|
9285
|
-
const getComponentCss$
|
|
9288
|
+
const getComponentCss$u = (isDisabled, isSelected, hasIcon, hasSlottedContent, theme) => {
|
|
9286
9289
|
const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$2(isDisabled, isSelected, theme);
|
|
9287
9290
|
const { buttonColor: buttonColorDark, labelColor: labelColorDark, borderColor: borderColorDark, hoverBorderColor: hoverBorderColorDark, } = getColors$2(isDisabled, isSelected, 'dark');
|
|
9288
9291
|
return getCss({
|
|
@@ -9353,7 +9356,7 @@ const getComponentCss$t = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
|
|
|
9353
9356
|
}),
|
|
9354
9357
|
});
|
|
9355
9358
|
};
|
|
9356
|
-
const getComponentCss$
|
|
9359
|
+
const getComponentCss$t = (maxWidth, columns) => {
|
|
9357
9360
|
return getCss({
|
|
9358
9361
|
'@global': {
|
|
9359
9362
|
':host': {
|
|
@@ -9657,7 +9660,7 @@ const getListStyles$1 = (direction, theme) => {
|
|
|
9657
9660
|
},
|
|
9658
9661
|
};
|
|
9659
9662
|
};
|
|
9660
|
-
const getComponentCss$
|
|
9663
|
+
const getComponentCss$s = (direction, isOpen, state, disabled, filter, isNativePopoverCase, theme) => {
|
|
9661
9664
|
return getCss(
|
|
9662
9665
|
// merge because of global styles
|
|
9663
9666
|
mergeDeep({
|
|
@@ -9681,7 +9684,7 @@ const getComponentCss$r = (direction, isOpen, state, disabled, filter, isNativeP
|
|
|
9681
9684
|
: getButtonStyles$1(direction, isOpen, state, theme), isOpen && getListStyles$1(direction, theme)));
|
|
9682
9685
|
};
|
|
9683
9686
|
|
|
9684
|
-
const getComponentCss$
|
|
9687
|
+
const getComponentCss$r = (isDisabled, hasCustomDropdown, hideLabel, state, theme) => {
|
|
9685
9688
|
return getCss({
|
|
9686
9689
|
'@global': {
|
|
9687
9690
|
':host': {
|
|
@@ -9745,7 +9748,7 @@ const cssVarBorderColor = '--p-select-border-color';
|
|
|
9745
9748
|
const cssVarIconFilter = '--p-select-icon-filter';
|
|
9746
9749
|
const cssVarBackgroundColorFocus = '--p-select-focus-background-color';
|
|
9747
9750
|
const cssVarBorderColorFocus = '--p-select-focus-border-color';
|
|
9748
|
-
const getComponentCss$
|
|
9751
|
+
const getComponentCss$q = (direction, isOpen, isDisabled, hideLabel, state, isNativePopoverCase, theme, hasSlottedImage) => {
|
|
9749
9752
|
return getCss({
|
|
9750
9753
|
'@global': {
|
|
9751
9754
|
':host': {
|
|
@@ -9945,6 +9948,51 @@ const getListStyles = (isOpen, direction, theme) => {
|
|
|
9945
9948
|
};
|
|
9946
9949
|
};
|
|
9947
9950
|
|
|
9951
|
+
const getComponentCss$p = (isOpen, hasDismissButton, theme) => {
|
|
9952
|
+
return getCss({
|
|
9953
|
+
'@global': {
|
|
9954
|
+
':host': {
|
|
9955
|
+
display: 'block',
|
|
9956
|
+
...addImportantToEachRule({
|
|
9957
|
+
...dialogHostJssStyle,
|
|
9958
|
+
...colorSchemeStyles,
|
|
9959
|
+
...hostHiddenStyles,
|
|
9960
|
+
}),
|
|
9961
|
+
},
|
|
9962
|
+
...preventFoucOfNestedElementsStyles,
|
|
9963
|
+
slot: {
|
|
9964
|
+
display: 'block',
|
|
9965
|
+
gridColumn: '2/3',
|
|
9966
|
+
zIndex: 0, // controls layering + creates new stacking context (prevents content within to be above other dialog areas)
|
|
9967
|
+
},
|
|
9968
|
+
dialog: getDialogJssStyle(isOpen, theme, 'shading'),
|
|
9969
|
+
},
|
|
9970
|
+
scroller: getScrollerJssStyle('fullscreen', theme),
|
|
9971
|
+
sheet: {
|
|
9972
|
+
...dialogGridJssStyle,
|
|
9973
|
+
...getDialogColorJssStyle(theme),
|
|
9974
|
+
...getDialogTransitionJssStyle(isOpen, '^'),
|
|
9975
|
+
width: '100%',
|
|
9976
|
+
alignSelf: 'flex-end',
|
|
9977
|
+
marginBlockStart: spacingFluidLarge, // ensures minimal space at the top to visualize paper sheet like border top radius in case sheet becomes scrollable
|
|
9978
|
+
borderTopLeftRadius: borderRadiusLarge,
|
|
9979
|
+
borderTopRightRadius: borderRadiusLarge,
|
|
9980
|
+
},
|
|
9981
|
+
...(hasDismissButton && {
|
|
9982
|
+
dismiss: {
|
|
9983
|
+
...dismissButtonJssStyle,
|
|
9984
|
+
gridArea: '1/3',
|
|
9985
|
+
zIndex: 2, // ensures dismiss button is above header and content
|
|
9986
|
+
position: 'sticky',
|
|
9987
|
+
insetBlockStart: spacingFluidSmall,
|
|
9988
|
+
marginBlockStart: `calc(${spacingFluidMedium} * -1)`,
|
|
9989
|
+
marginInlineEnd: spacingFluidSmall,
|
|
9990
|
+
placeSelf: 'flex-start flex-end',
|
|
9991
|
+
},
|
|
9992
|
+
}),
|
|
9993
|
+
});
|
|
9994
|
+
};
|
|
9995
|
+
|
|
9948
9996
|
const sizeSmall = '48px';
|
|
9949
9997
|
const sizeMedium = '72px';
|
|
9950
9998
|
const sizeLarge = '104px';
|
|
@@ -10336,6 +10384,7 @@ const isSortable = (active, direction) => {
|
|
|
10336
10384
|
|
|
10337
10385
|
const cssVariableTableHoverColor = '--p-internal-table-hover-color';
|
|
10338
10386
|
const cssVariableTableBorderColor = '--p-internal-table-border-color';
|
|
10387
|
+
const cssVariableTableBorderWidth = '--p-internal-table-border-width';
|
|
10339
10388
|
const cssVariableTableHeadCellIconFilter = '--p-internal-table-head-cell-icon-filter';
|
|
10340
10389
|
const getComponentCss$i = (theme) => {
|
|
10341
10390
|
const { primaryColor, hoverColor, contrastLowColor } = doGetThemedColors(theme);
|
|
@@ -10488,6 +10537,10 @@ const getComponentCss$f = () => {
|
|
|
10488
10537
|
...hostHiddenStyles,
|
|
10489
10538
|
}),
|
|
10490
10539
|
},
|
|
10540
|
+
'::slotted(*)': addImportantToEachRule({
|
|
10541
|
+
[cssVariableTableBorderWidth]: '0px',
|
|
10542
|
+
[cssVariableTableHoverColor]: 'none',
|
|
10543
|
+
}),
|
|
10491
10544
|
},
|
|
10492
10545
|
});
|
|
10493
10546
|
};
|
|
@@ -10498,8 +10551,8 @@ const getComponentCss$e = () => {
|
|
|
10498
10551
|
':host': {
|
|
10499
10552
|
display: 'table-row',
|
|
10500
10553
|
...addImportantToEachRule({
|
|
10501
|
-
borderTop: `1px solid var(${cssVariableTableBorderColor})`,
|
|
10502
|
-
borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
|
|
10554
|
+
borderTop: `var(${cssVariableTableBorderWidth},1px) solid var(${cssVariableTableBorderColor})`,
|
|
10555
|
+
borderBottom: `var(${cssVariableTableBorderWidth},1px) solid var(${cssVariableTableBorderColor})`,
|
|
10503
10556
|
transition: getTransition('background'),
|
|
10504
10557
|
...hostHiddenStyles,
|
|
10505
10558
|
...hoverMediaQuery({
|
|
@@ -10894,7 +10947,7 @@ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
|
|
|
10894
10947
|
|
|
10895
10948
|
const cssVariableInputPaddingStart = '--p-internal-text-field-input-padding-start';
|
|
10896
10949
|
const cssVariableInputPaddingEnd = '--p-internal-text-field-input-padding-end';
|
|
10897
|
-
const getComponentCss$8 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, hasSubmitButton, theme, unitLength) => {
|
|
10950
|
+
const getComponentCss$8 = (isDisabled, isReadonly, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, hasSubmitButton, theme, unitLength) => {
|
|
10898
10951
|
const isSearch = isType(inputType, 'search');
|
|
10899
10952
|
const isPassword = isType(inputType, 'password');
|
|
10900
10953
|
const isNumber = isType(inputType, 'number');
|
|
@@ -10993,7 +11046,7 @@ const getComponentCss$8 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
|
|
|
10993
11046
|
}),
|
|
10994
11047
|
...(hasUnitOrVisibleCounter && {
|
|
10995
11048
|
'unit-counter': {
|
|
10996
|
-
...getUnitCounterJssStyle(isDisabled, theme),
|
|
11049
|
+
...getUnitCounterJssStyle(isDisabled, isReadonly, theme),
|
|
10997
11050
|
gridArea: `1/${unitPosition === 'suffix' ? 5 : 1}/1/${unitPosition === 'suffix' ? 7 : 3}`,
|
|
10998
11051
|
placeSelf: 'center',
|
|
10999
11052
|
paddingInline: unitPosition === 'suffix'
|
|
@@ -11123,7 +11176,7 @@ const getComponentCss$5 = (size, weight, align, color, ellipsis, theme) => {
|
|
|
11123
11176
|
});
|
|
11124
11177
|
};
|
|
11125
11178
|
|
|
11126
|
-
const getComponentCss$4 = (isDisabled, hideLabel, state, hasCounter, theme) => {
|
|
11179
|
+
const getComponentCss$4 = (isDisabled, isReadonly, hideLabel, state, hasCounter, theme) => {
|
|
11127
11180
|
return getCss({
|
|
11128
11181
|
'@global': {
|
|
11129
11182
|
':host': {
|
|
@@ -11163,7 +11216,7 @@ const getComponentCss$4 = (isDisabled, hideLabel, state, hasCounter, theme) => {
|
|
|
11163
11216
|
},
|
|
11164
11217
|
...(hasCounter && {
|
|
11165
11218
|
counter: {
|
|
11166
|
-
...getUnitCounterJssStyle(isDisabled, theme),
|
|
11219
|
+
...getUnitCounterJssStyle(isDisabled, isReadonly, theme),
|
|
11167
11220
|
gridArea: '1/1',
|
|
11168
11221
|
placeSelf: 'flex-end',
|
|
11169
11222
|
padding: `6px calc(${formElementPaddingHorizontal} + ${borderWidthBase})`,
|
|
@@ -11178,7 +11231,7 @@ const getComponentCss$4 = (isDisabled, hideLabel, state, hasCounter, theme) => {
|
|
|
11178
11231
|
});
|
|
11179
11232
|
};
|
|
11180
11233
|
|
|
11181
|
-
const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, resize, theme) => {
|
|
11234
|
+
const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, hasCounter, resize, theme) => {
|
|
11182
11235
|
const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
|
|
11183
11236
|
const { primaryColor: primaryColorDark, contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, disabledColor: disabledColorDark, } = getThemedColors('dark');
|
|
11184
11237
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -11266,7 +11319,7 @@ const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, resize, the
|
|
|
11266
11319
|
},
|
|
11267
11320
|
...(hasCounter && {
|
|
11268
11321
|
counter: {
|
|
11269
|
-
...getUnitCounterJssStyle(isDisabled, theme),
|
|
11322
|
+
...getUnitCounterJssStyle(isDisabled, isReadonly, theme),
|
|
11270
11323
|
gridArea: '1/1',
|
|
11271
11324
|
placeSelf: 'flex-end',
|
|
11272
11325
|
padding: `6px calc(${formElementPaddingHorizontal} + ${borderWidthBase})`,
|
|
@@ -11389,4 +11442,4 @@ const getComponentCss = (size, theme) => {
|
|
|
11389
11442
|
});
|
|
11390
11443
|
};
|
|
11391
11444
|
|
|
11392
|
-
export { getComponentCss$
|
|
11445
|
+
export { getComponentCss$1a as getAccordionCss, getComponentCss$19 as getBannerCss, getComponentCss$15 as getButtonCss, getComponentCss$18 as getButtonGroupCss, getComponentCss$17 as getButtonPureCss, getComponentCss$16 as getButtonTileCss, getComponentCss$14 as getCanvasCss, getComponentCss$13 as getCarouselCss, getComponentCss$11 as getCheckboxCss, getComponentCss$12 as getCheckboxWrapperCss, getComponentCss$10 as getContentWrapperCss, getComponentCss$$ as getCrestCss, getComponentCss$_ as getDisplayCss, getComponentCss$Z as getDividerCss, getComponentCss$X as getFieldsetCss, getComponentCss$Y as getFieldsetWrapperCss, getComponentCss$V as getFlexCss, getComponentCss$W as getFlexItemCss, getComponentCss$S as getFlyoutCss, getComponentCss$U as getFlyoutMultilevelCss, getComponentCss$T as getFlyoutMultilevelItemCss, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$Q as getGridCss, getComponentCss$R as getGridItemCss, getComponentCss$P as getHeadingCss, getComponentCss$O as getHeadlineCss, getComponentCss$N as getIconCss, getComponentCss$M as getInlineNotificationCss, 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$A as getOptgroupCss, getComponentCss$z as getPaginationCss, getComponentCss$y as getPinCodeCss, getComponentCss$x as getPopoverCss, getComponentCss$w as getRadioButtonWrapperCss, getComponentCss$v as getScrollerCss, getComponentCss$t as getSegmentedControlCss, getComponentCss$u as getSegmentedControlItemCss, getComponentCss$q as getSelectCss, getComponentCss$B as getSelectOptionCss, getComponentCss$r as getSelectWrapperCss, getComponentCss$s 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$j as getTableCellCss, getComponentCss$i 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 };
|
|
@@ -5,20 +5,20 @@ import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRButtonPure } from '../dsr-components/button-pure.mjs';
|
|
7
7
|
|
|
8
|
-
const PButtonPure = /*#__PURE__*/ forwardRef(({ active = false, alignLabel = 'end', aria, disabled = false, hideLabel = false, icon = 'arrow-right', iconSource, loading = false, name, size = 'small', stretch = false, theme, type = 'submit', underline = false, value, weight = 'regular', className, children, ...rest }, ref) => {
|
|
8
|
+
const PButtonPure = /*#__PURE__*/ forwardRef(({ active = false, alignLabel = 'end', aria, disabled = false, form, hideLabel = false, icon = 'arrow-right', iconSource, loading = false, name, size = 'small', stretch = false, theme, type = 'submit', underline = false, value, weight = 'regular', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef(undefined);
|
|
10
10
|
const WebComponentTag = usePrefix('p-button-pure');
|
|
11
|
-
const propsToSync = [active, alignLabel, aria, disabled, hideLabel, icon, iconSource, loading, name, size, stretch, theme || useTheme(), type, underline, value, weight];
|
|
11
|
+
const propsToSync = [active, alignLabel, aria, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, theme || useTheme(), type, underline, value, weight];
|
|
12
12
|
useBrowserLayoutEffect(() => {
|
|
13
13
|
const { current } = elementRef;
|
|
14
|
-
['active', 'alignLabel', 'aria', 'disabled', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'size', 'stretch', 'theme', 'type', 'underline', 'value', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
14
|
+
['active', 'alignLabel', 'aria', 'disabled', 'form', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'size', 'stretch', 'theme', 'type', 'underline', 'value', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
15
|
}, propsToSync);
|
|
16
16
|
const props = {
|
|
17
17
|
...rest,
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
...(!process.browser
|
|
20
20
|
? {
|
|
21
|
-
children: (jsx(DSRButtonPure, { active, alignLabel, aria, disabled, hideLabel, icon, iconSource, loading, name, size, stretch, theme: theme || useTheme(), type, underline, value, weight, children })),
|
|
21
|
+
children: (jsx(DSRButtonPure, { active, alignLabel, aria, disabled, form, hideLabel, icon, iconSource, loading, name, size, stretch, theme: theme || useTheme(), type, underline, value, weight, children })),
|
|
22
22
|
}
|
|
23
23
|
: {
|
|
24
24
|
children,
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.mjs
CHANGED
|
@@ -5,20 +5,20 @@ import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../
|
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
import { DSRButton } from '../dsr-components/button.mjs';
|
|
7
7
|
|
|
8
|
-
const PButton = /*#__PURE__*/ forwardRef(({ aria, compact = false, disabled = false, hideLabel = false, icon = 'none', iconSource, loading = false, name, theme, type = 'submit', value, variant = 'primary', className, children, ...rest }, ref) => {
|
|
8
|
+
const PButton = /*#__PURE__*/ forwardRef(({ aria, compact = false, disabled = false, form, hideLabel = false, icon = 'none', iconSource, loading = false, name, theme, type = 'submit', value, variant = 'primary', className, children, ...rest }, ref) => {
|
|
9
9
|
const elementRef = useRef(undefined);
|
|
10
10
|
const WebComponentTag = usePrefix('p-button');
|
|
11
|
-
const propsToSync = [aria, compact, disabled, hideLabel, icon, iconSource, loading, name, theme || useTheme(), type, value, variant];
|
|
11
|
+
const propsToSync = [aria, compact, disabled, form, hideLabel, icon, iconSource, loading, name, theme || useTheme(), type, value, variant];
|
|
12
12
|
useBrowserLayoutEffect(() => {
|
|
13
13
|
const { current } = elementRef;
|
|
14
|
-
['aria', 'compact', 'disabled', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'theme', 'type', 'value', 'variant'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
14
|
+
['aria', 'compact', 'disabled', 'form', 'hideLabel', 'icon', 'iconSource', 'loading', 'name', 'theme', 'type', 'value', 'variant'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
15
|
}, propsToSync);
|
|
16
16
|
const props = {
|
|
17
17
|
...rest,
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
...(!process.browser
|
|
20
20
|
? {
|
|
21
|
-
children: (jsx(DSRButton, { aria, compact, disabled, hideLabel, icon, iconSource, loading, name, theme: theme || useTheme(), type, value, variant, children })),
|
|
21
|
+
children: (jsx(DSRButton, { aria, compact, disabled, form, hideLabel, icon, iconSource, loading, name, theme: theme || useTheme(), type, value, variant, children })),
|
|
22
22
|
}
|
|
23
23
|
: {
|
|
24
24
|
children,
|