@porsche-design-system/components-react 3.0.0-alpha.3 → 3.0.0-alpha.4
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 +83 -0
- package/esm/lib/components/button-tile.wrapper.js +22 -0
- package/esm/lib/components/carousel.wrapper.js +3 -3
- package/esm/lib/components/fieldset-wrapper.wrapper.js +1 -0
- package/esm/lib/components/fieldset.wrapper.js +22 -0
- package/esm/lib/components/link-tile-model-signature.wrapper.js +22 -0
- package/esm/lib/components/scroller.wrapper.js +3 -3
- package/esm/lib/components/table.wrapper.js +5 -3
- package/esm/public-api.js +3 -0
- package/lib/components/banner.wrapper.d.ts +4 -2
- package/lib/components/button-tile.wrapper.d.ts +120 -0
- package/lib/components/button-tile.wrapper.js +24 -0
- package/lib/components/carousel.wrapper.d.ts +12 -4
- package/lib/components/carousel.wrapper.js +3 -3
- package/lib/components/fieldset-wrapper.wrapper.d.ts +1 -0
- package/lib/components/fieldset-wrapper.wrapper.js +1 -0
- package/lib/components/fieldset.wrapper.d.ts +56 -0
- package/lib/components/fieldset.wrapper.js +24 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/link-tile-model-signature.wrapper.d.ts +64 -0
- package/lib/components/link-tile-model-signature.wrapper.js +24 -0
- package/lib/components/link-tile.wrapper.d.ts +2 -2
- package/lib/components/scroller.wrapper.d.ts +8 -0
- package/lib/components/scroller.wrapper.js +3 -3
- package/lib/components/table.wrapper.d.ts +9 -1
- package/lib/components/table.wrapper.js +5 -3
- package/lib/types.d.ts +74 -43
- package/package.json +2 -2
- package/public-api.js +6 -0
- package/ssr/components/dist/styles/esm/styles-entry.js +426 -354
- package/ssr/components/dist/utils/esm/utils-entry.js +8 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.js +38 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.js +38 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.js +38 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +6 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +5 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +88 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +5 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +22 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +95 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +7 -3
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +5 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +3 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +7 -10
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +4 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/public-api.js +6 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +397 -328
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +8 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.js +36 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.js +36 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.js +36 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +6 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +86 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +7 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +4 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +20 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +93 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +7 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +8 -11
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +4 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.js +3 -0
- package/ssr/lib/components/banner.wrapper.d.ts +4 -2
- package/ssr/lib/components/button-tile.wrapper.d.ts +120 -0
- package/ssr/lib/components/carousel.wrapper.d.ts +12 -4
- package/ssr/lib/components/fieldset-wrapper.wrapper.d.ts +1 -0
- package/ssr/lib/components/fieldset.wrapper.d.ts +56 -0
- package/ssr/lib/components/index.d.ts +3 -0
- package/ssr/lib/components/link-tile-model-signature.wrapper.d.ts +64 -0
- package/ssr/lib/components/link-tile.wrapper.d.ts +2 -2
- package/ssr/lib/components/scroller.wrapper.d.ts +8 -0
- package/ssr/lib/components/table.wrapper.d.ts +9 -1
- package/ssr/lib/dsr-components/button-tile.d.ts +5 -0
- package/ssr/lib/dsr-components/fieldset-wrapper.d.ts +1 -0
- package/ssr/lib/dsr-components/fieldset.d.ts +5 -0
- package/ssr/lib/dsr-components/link-tile-model-signature.d.ts +5 -0
- package/ssr/lib/dsr-components/table.d.ts +0 -6
- package/ssr/lib/types.d.ts +74 -43
- package/styles/_index.scss +1 -0
- package/styles/scss.scss +0 -1
|
@@ -49,6 +49,10 @@ const dropShadowLowStyle = {
|
|
|
49
49
|
filter: `drop-shadow(0px 3px 8px ${_dropShadowBackgroundColor})`,
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
const dropShadowHighStyle = {
|
|
53
|
+
filter: `drop-shadow(0px 8px 40px ${_dropShadowBackgroundColor})`,
|
|
54
|
+
};
|
|
55
|
+
|
|
52
56
|
const fontFamily = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
53
57
|
|
|
54
58
|
const fontHyphenationStyle = {
|
|
@@ -97,13 +101,13 @@ const fontSizeDisplayLarge = 'clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)';
|
|
|
97
101
|
|
|
98
102
|
const fontWeightRegular = 400;
|
|
99
103
|
|
|
100
|
-
const fontWeightSemiBold
|
|
104
|
+
const fontWeightSemiBold = 600;
|
|
101
105
|
|
|
102
106
|
const fontWeightBold = 700;
|
|
103
107
|
|
|
104
108
|
const fontWeight = {
|
|
105
109
|
regular: fontWeightRegular,
|
|
106
|
-
semiBold: fontWeightSemiBold
|
|
110
|
+
semiBold: fontWeightSemiBold,
|
|
107
111
|
bold: fontWeightBold,
|
|
108
112
|
};
|
|
109
113
|
|
|
@@ -172,15 +176,60 @@ const spacingFluidMedium = 'clamp(16px, 1.25vw + 12px, 36px)';
|
|
|
172
176
|
|
|
173
177
|
const gridGap = spacingFluidMedium;
|
|
174
178
|
|
|
175
|
-
const
|
|
176
|
-
|
|
179
|
+
const _gridWidthMax = '2560px';
|
|
177
180
|
// fluid sizing calculated by https://fluidtypography.com/#app-get-started
|
|
178
|
-
|
|
179
|
-
const
|
|
181
|
+
const _gridSafeZoneBase = 'max(22px, 10.625vw - 12px)'; // viewport-width range = 320 - 760px / size range = 22 - 68.75px
|
|
182
|
+
const _gridSafeZoneS = 'calc(5vw - 16px)'; // viewport-width range = 760 - 1920px / size range = 22(22.75) - 80(79.71)px
|
|
183
|
+
const _gridSafeZoneXXL = 'min(50vw - 880px, 400px)'; // viewport-width range = 1920 - 2560px / size range = 80(79.71)px - 400(399.71)px
|
|
180
184
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
185
|
+
const columnMap = {
|
|
186
|
+
narrow: 4,
|
|
187
|
+
basic: 2,
|
|
188
|
+
extended: 1,
|
|
189
|
+
};
|
|
190
|
+
const gridColumnWidthS = `calc((100vw - ${_gridSafeZoneS} * 2 - ${gridGap} * 15) / 16)`;
|
|
191
|
+
const gridColumnWidthXXL = `calc((min(100vw, ${_gridWidthMax}) - ${_gridSafeZoneXXL} * 2 - ${gridGap} * 15) / 16)`;
|
|
192
|
+
const _gridPadding = `max(0px, 50vw - ${_gridWidthMax} / 2)`;
|
|
193
|
+
const _getGridOffsetS = (width) => `calc(${_gridSafeZoneS} + (${gridGap} + ${gridColumnWidthS}) * ${columnMap[width]})`;
|
|
194
|
+
const _getGridOffsetXXL = (width) => `calc(${_gridPadding} + ${_gridSafeZoneXXL} + (${gridGap} + ${gridColumnWidthXXL}) * ${columnMap[width]})`;
|
|
195
|
+
|
|
196
|
+
const gridFullOffset = _gridPadding;
|
|
197
|
+
|
|
198
|
+
const gridExtendedOffsetBase = _gridSafeZoneBase;
|
|
199
|
+
|
|
200
|
+
const gridExtendedOffsetS = _getGridOffsetS('extended');
|
|
201
|
+
|
|
202
|
+
const gridExtendedOffsetXXL = _getGridOffsetXXL('extended');
|
|
203
|
+
|
|
204
|
+
const gridExtendedOffset = {
|
|
205
|
+
base: gridExtendedOffsetBase,
|
|
206
|
+
s: gridExtendedOffsetS,
|
|
207
|
+
xxl: gridExtendedOffsetXXL,
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
const gridBasicOffsetBase = _gridSafeZoneBase;
|
|
211
|
+
|
|
212
|
+
const gridBasicOffsetS = _getGridOffsetS('basic');
|
|
213
|
+
|
|
214
|
+
const gridBasicOffsetXXL = _getGridOffsetXXL('basic');
|
|
215
|
+
|
|
216
|
+
const gridBasicOffset = {
|
|
217
|
+
base: gridBasicOffsetBase,
|
|
218
|
+
s: gridBasicOffsetS,
|
|
219
|
+
xxl: gridBasicOffsetXXL,
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
const gridNarrowOffsetBase = _gridSafeZoneBase;
|
|
223
|
+
|
|
224
|
+
const gridNarrowOffsetS = _getGridOffsetS('narrow');
|
|
225
|
+
|
|
226
|
+
const gridNarrowOffsetXXL = _getGridOffsetXXL('narrow');
|
|
227
|
+
|
|
228
|
+
const gridNarrowOffset = {
|
|
229
|
+
base: gridNarrowOffsetBase,
|
|
230
|
+
s: gridNarrowOffsetS,
|
|
231
|
+
xxl: gridNarrowOffsetXXL,
|
|
232
|
+
};
|
|
184
233
|
|
|
185
234
|
function getMediaQueryMax(max) {
|
|
186
235
|
return `@media(max-width:${breakpoint[max] - 1}px)`;
|
|
@@ -217,7 +266,7 @@ const displayLargeStyle = {
|
|
|
217
266
|
font: `${_displayFontPartA}${fontSizeDisplayLarge}${_displayFontPartB}`,
|
|
218
267
|
};
|
|
219
268
|
|
|
220
|
-
const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightSemiBold
|
|
269
|
+
const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightSemiBold} `;
|
|
221
270
|
const _headingFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
222
271
|
|
|
223
272
|
const headingSmallStyle = {
|
|
@@ -3752,13 +3801,10 @@ const addImportantToEachRule = (input) => {
|
|
|
3752
3801
|
typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
|
|
3753
3802
|
result), {});
|
|
3754
3803
|
};
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
color: getThemedColors(theme).hoverColor,
|
|
3760
|
-
},
|
|
3761
|
-
};
|
|
3804
|
+
// TODO: this is workaround, in order the colors to be bundled in the main bundle, we need to have at least one function here, which is used in project and which calls "getThemedColors"
|
|
3805
|
+
// TODO: This mechanism needs to be investigated as part of refactoring
|
|
3806
|
+
const doGetThemedColors = (theme = 'light') => {
|
|
3807
|
+
return getThemedColors(theme);
|
|
3762
3808
|
};
|
|
3763
3809
|
const getInsetJssStyle = (value = 0) => {
|
|
3764
3810
|
value = value === 0 || value === 'auto' ? value : `${value}px`;
|
|
@@ -3913,14 +3959,14 @@ const mergeDeep = (...objects) => {
|
|
|
3913
3959
|
}, {});
|
|
3914
3960
|
};
|
|
3915
3961
|
|
|
3916
|
-
const hasDocument = typeof document !== 'undefined';
|
|
3917
|
-
|
|
3918
|
-
hasDocument && 'scrollBehavior' in document.documentElement.style;
|
|
3919
|
-
|
|
3920
3962
|
const isThemeDark = (theme) => {
|
|
3921
3963
|
return theme === 'dark';
|
|
3922
3964
|
};
|
|
3923
3965
|
|
|
3966
|
+
const hasDocument = typeof document !== 'undefined';
|
|
3967
|
+
|
|
3968
|
+
hasDocument && 'scrollBehavior' in document.documentElement.style;
|
|
3969
|
+
|
|
3924
3970
|
const formatObjectOutput = (value) => {
|
|
3925
3971
|
return JSON.stringify(value)
|
|
3926
3972
|
.replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
|
|
@@ -3933,7 +3979,7 @@ const formatObjectOutput = (value) => {
|
|
|
3933
3979
|
|
|
3934
3980
|
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
3935
3981
|
|
|
3936
|
-
const getComponentCss$
|
|
3982
|
+
const getComponentCss$W = (size, compact, open, theme) => {
|
|
3937
3983
|
const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
|
|
3938
3984
|
const border = `1px solid ${contrastLowColor}`;
|
|
3939
3985
|
return getCss(Object.assign(Object.assign({ '@global': {
|
|
@@ -4002,50 +4048,9 @@ const getComponentCss$T = (size, compact, open, theme) => {
|
|
|
4002
4048
|
} }));
|
|
4003
4049
|
};
|
|
4004
4050
|
|
|
4005
|
-
const TOAST_Z_INDEX = 999999;
|
|
4006
|
-
const MODAL_Z_INDEX = 99999;
|
|
4007
|
-
const POPOVER_Z_INDEX = 9999;
|
|
4008
|
-
const BANNER_Z_INDEX = 99;
|
|
4009
|
-
|
|
4010
|
-
const oneColumnWidthS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
|
|
4011
|
-
const oneColumnWidthXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
|
|
4012
|
-
const offsetHorizontalXXL = `max(0px, (100% - ${gridWidthMax}) / 2)`;
|
|
4013
|
-
const widthMap$1 = {
|
|
4014
|
-
narrow: {
|
|
4015
|
-
padding: `0 ${gridSafeZoneBase}`,
|
|
4016
|
-
[getMediaQueryMin('s')]: {
|
|
4017
|
-
padding: `0 calc(${gridSafeZoneBase} + ${gridGap} * 3 + ${oneColumnWidthS} * 3)`,
|
|
4018
|
-
},
|
|
4019
|
-
[getMediaQueryMin('xxl')]: {
|
|
4020
|
-
padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} * 3 + ${oneColumnWidthXXL} * 3)`,
|
|
4021
|
-
},
|
|
4022
|
-
},
|
|
4023
|
-
basic: {
|
|
4024
|
-
padding: `0 ${gridSafeZoneBase}`,
|
|
4025
|
-
[getMediaQueryMin('s')]: {
|
|
4026
|
-
padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${oneColumnWidthS})`,
|
|
4027
|
-
},
|
|
4028
|
-
[getMediaQueryMin('xxl')]: {
|
|
4029
|
-
padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL} + ${gridGap} + ${oneColumnWidthXXL})`,
|
|
4030
|
-
},
|
|
4031
|
-
},
|
|
4032
|
-
extended: {
|
|
4033
|
-
padding: `0 ${gridSafeZoneBase}`,
|
|
4034
|
-
[getMediaQueryMin('xxl')]: {
|
|
4035
|
-
padding: `0 calc(${offsetHorizontalXXL} + ${gridSafeZoneXXL})`,
|
|
4036
|
-
},
|
|
4037
|
-
},
|
|
4038
|
-
};
|
|
4039
|
-
const getContentWrapperStyle = (width) => {
|
|
4040
|
-
return Object.assign({ display: 'block', margin: 0, padding: `0 ${offsetHorizontalXXL}`, width: 'auto', minWidth: 0, maxWidth: gridWidthMax }, widthMap$1[width]);
|
|
4041
|
-
};
|
|
4042
|
-
|
|
4043
4051
|
const easeInQuad = 'cubic-bezier(0.45,0,0.55,1)';
|
|
4044
4052
|
const easeOutQuad = 'cubic-bezier(0.5,1,0.89,1)';
|
|
4045
4053
|
const ANIMATION_DURATION = 600;
|
|
4046
|
-
const getBoxShadow = () => ({
|
|
4047
|
-
boxShadow: '0 2px 4px 0 rgba(0,0,0,0.05),0 15px 20px 0 rgba(0,0,0,0.2)',
|
|
4048
|
-
});
|
|
4049
4054
|
const getAnimationIn = (keyframesName, durationVar) => {
|
|
4050
4055
|
const duration = durationVar ? `var(${durationVar},${ANIMATION_DURATION}ms)` : `${ANIMATION_DURATION}ms`;
|
|
4051
4056
|
return {
|
|
@@ -4072,69 +4077,67 @@ const getKeyframesMobile = (direction, bottomVar) => getKeyframes(direction, {
|
|
|
4072
4077
|
transform: `translate3d(0,calc(var(${bottomVar}) + 100%),0)`, // space before and after "+" is crucial
|
|
4073
4078
|
});
|
|
4074
4079
|
|
|
4075
|
-
const
|
|
4076
|
-
const
|
|
4077
|
-
const
|
|
4078
|
-
const
|
|
4079
|
-
|
|
4080
|
-
const
|
|
4081
|
-
const
|
|
4080
|
+
const TOAST_Z_INDEX = 999999;
|
|
4081
|
+
const MODAL_Z_INDEX = 99999;
|
|
4082
|
+
const POPOVER_Z_INDEX = 9999;
|
|
4083
|
+
const BANNER_Z_INDEX = 99;
|
|
4084
|
+
|
|
4085
|
+
const cssVariableTop = '--p-banner-position-top';
|
|
4086
|
+
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4087
|
+
const cssVariableAnimationDuration = '--p-animation-duration';
|
|
4088
|
+
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4089
|
+
const mediaQueryBaseToS = getMediaQueryMinMax('base', 's');
|
|
4082
4090
|
const mediaQueryS$1 = getMediaQueryMin('s');
|
|
4091
|
+
const mediaQueryXXL$1 = getMediaQueryMin('xxl');
|
|
4083
4092
|
const getKeyframesDesktop = (direction, topVar) => getKeyframes(direction, {
|
|
4084
4093
|
opacity: 0,
|
|
4085
4094
|
transform: `translate3d(0,calc(-100% - var(${topVar})),0)`, // space before and after "-" is crucial
|
|
4086
4095
|
});
|
|
4087
|
-
const
|
|
4088
|
-
fluid: 'extended',
|
|
4089
|
-
extended: 'extended',
|
|
4090
|
-
basic: 'basic',
|
|
4091
|
-
};
|
|
4092
|
-
const getComponentCss$S = (width) => {
|
|
4096
|
+
const getComponentCss$V = () => {
|
|
4093
4097
|
return getCss({
|
|
4094
4098
|
'@global': {
|
|
4095
|
-
':host': Object.assign(Object.assign({
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
},
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
},
|
|
4104
|
-
|
|
4105
|
-
[
|
|
4106
|
-
[mediaQueryS$1]: getAnimationIn('desktopIn', bannerAnimationDurationVar),
|
|
4099
|
+
':host': Object.assign(Object.assign({ opacity: 0 }, addImportantToEachRule(Object.assign(Object.assign(Object.assign({ [cssVariableTop]: '56px', [cssVariableBottom]: '56px', position: 'fixed', top: 'auto', bottom: `var(${cssVariableBottom})`, left: gridExtendedOffsetBase, right: gridExtendedOffsetBase, margin: 0, padding: 0, width: 'auto', zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`, willChange: 'opacity,transform' }, dropShadowHighStyle), { [mediaQueryS$1]: {
|
|
4100
|
+
top: `var(${cssVariableTop})`,
|
|
4101
|
+
bottom: 'auto',
|
|
4102
|
+
left: gridExtendedOffsetS,
|
|
4103
|
+
right: gridExtendedOffsetS,
|
|
4104
|
+
}, [mediaQueryXXL$1]: {
|
|
4105
|
+
left: gridExtendedOffsetXXL,
|
|
4106
|
+
right: gridExtendedOffsetXXL,
|
|
4107
|
+
} }), hostHiddenStyles))), { '&(.hydrated),&(.ssr)': {
|
|
4108
|
+
[mediaQueryBaseToS]: getAnimationIn('mobileIn', cssVariableAnimationDuration),
|
|
4109
|
+
[mediaQueryS$1]: getAnimationIn('desktopIn', cssVariableAnimationDuration),
|
|
4107
4110
|
}, '&(.banner--close)': {
|
|
4108
|
-
[
|
|
4111
|
+
[mediaQueryBaseToS]: getAnimationOut('mobileOut'),
|
|
4109
4112
|
[mediaQueryS$1]: getAnimationOut('desktopOut'),
|
|
4110
4113
|
} }),
|
|
4111
|
-
'@keyframes mobileIn': getKeyframesMobile('in',
|
|
4112
|
-
'@keyframes mobileOut': getKeyframesMobile('out',
|
|
4113
|
-
'@keyframes desktopIn': getKeyframesDesktop('in',
|
|
4114
|
-
'@keyframes desktopOut': getKeyframesDesktop('out',
|
|
4114
|
+
'@keyframes mobileIn': getKeyframesMobile('in', cssVariableBottom),
|
|
4115
|
+
'@keyframes mobileOut': getKeyframesMobile('out', cssVariableBottom),
|
|
4116
|
+
'@keyframes desktopIn': getKeyframesDesktop('in', cssVariableTop),
|
|
4117
|
+
'@keyframes desktopOut': getKeyframesDesktop('out', cssVariableTop),
|
|
4115
4118
|
},
|
|
4116
|
-
root: getBoxShadow(),
|
|
4117
4119
|
});
|
|
4118
4120
|
};
|
|
4119
4121
|
|
|
4120
|
-
const
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
return
|
|
4122
|
+
const groupDirectionJssStyles = {
|
|
4123
|
+
column: {
|
|
4124
|
+
flexFlow: 'column nowrap',
|
|
4125
|
+
alignItems: 'stretch',
|
|
4126
|
+
},
|
|
4127
|
+
row: {
|
|
4128
|
+
flexFlow: 'row wrap',
|
|
4129
|
+
alignItems: 'center',
|
|
4130
|
+
},
|
|
4131
|
+
};
|
|
4132
|
+
const getGroupDirectionJssStyles = (direction) => {
|
|
4133
|
+
return groupDirectionJssStyles[direction];
|
|
4132
4134
|
};
|
|
4133
|
-
|
|
4135
|
+
|
|
4136
|
+
const getComponentCss$U = (direction) => {
|
|
4134
4137
|
return getCss({
|
|
4135
4138
|
'@global': {
|
|
4136
4139
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
4137
|
-
div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction,
|
|
4140
|
+
div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getGroupDirectionJssStyles)),
|
|
4138
4141
|
},
|
|
4139
4142
|
});
|
|
4140
4143
|
};
|
|
@@ -4155,7 +4158,7 @@ const getFontSizeText = (size) => {
|
|
|
4155
4158
|
// Needed for slotted anchor and hidden label, which then enlarges the hidden label to equal host size and indents the text to be visually hidden.
|
|
4156
4159
|
const getVisibilityJssStyle = (hideLabel) => {
|
|
4157
4160
|
return hideLabel
|
|
4158
|
-
? Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle(
|
|
4161
|
+
? Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle()), { whiteSpace: 'nowrap', textIndent: '-999999px' }) : Object.assign(Object.assign({ position: 'relative' }, getInsetJssStyle('auto')), { whiteSpace: 'inherit', textIndent: 0 });
|
|
4159
4162
|
};
|
|
4160
4163
|
const offsetVertical = '-2px';
|
|
4161
4164
|
const offsetHorizontal = '-4px';
|
|
@@ -4197,7 +4200,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4197
4200
|
}));
|
|
4198
4201
|
};
|
|
4199
4202
|
|
|
4200
|
-
const getComponentCss$
|
|
4203
|
+
const getComponentCss$T = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
|
|
4201
4204
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4202
4205
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
|
|
4203
4206
|
appearance: 'none',
|
|
@@ -4220,6 +4223,111 @@ const getComponentCss$Q = (icon, iconSource, active, isLoading, isDisabledOrLoad
|
|
|
4220
4223
|
}))));
|
|
4221
4224
|
};
|
|
4222
4225
|
|
|
4226
|
+
const fontWeightMap = {
|
|
4227
|
+
regular: fontWeightRegular,
|
|
4228
|
+
'semi-bold': fontWeightSemiBold,
|
|
4229
|
+
bold: fontWeightBold,
|
|
4230
|
+
};
|
|
4231
|
+
const getFontWeight = (weight) => {
|
|
4232
|
+
return fontWeightMap[weight];
|
|
4233
|
+
};
|
|
4234
|
+
|
|
4235
|
+
const getThemedTypographyColor = (theme, textColor) => {
|
|
4236
|
+
// TODO: don't destructure for better minification
|
|
4237
|
+
const { primaryColor, contrastHighColor, contrastMediumColor, contrastLowColor, successColor, errorColor, warningColor, infoColor, } = getThemedColors(theme);
|
|
4238
|
+
const colorMap = {
|
|
4239
|
+
primary: primaryColor,
|
|
4240
|
+
default: primaryColor,
|
|
4241
|
+
'contrast-low': contrastLowColor,
|
|
4242
|
+
'contrast-medium': contrastMediumColor,
|
|
4243
|
+
'contrast-high': contrastHighColor,
|
|
4244
|
+
'notification-success': successColor,
|
|
4245
|
+
'notification-warning': warningColor,
|
|
4246
|
+
'notification-error': errorColor,
|
|
4247
|
+
'notification-info': infoColor,
|
|
4248
|
+
inherit: 'currentColor',
|
|
4249
|
+
};
|
|
4250
|
+
return colorMap[textColor];
|
|
4251
|
+
};
|
|
4252
|
+
|
|
4253
|
+
const aspectRatioPaddingMap = {
|
|
4254
|
+
'1:1': '100%',
|
|
4255
|
+
'4:3': '75%',
|
|
4256
|
+
'3:4': '133.33%',
|
|
4257
|
+
'16:9': '56.25%',
|
|
4258
|
+
'9:16': '177.75%',
|
|
4259
|
+
};
|
|
4260
|
+
const getTileBaseStyles = (aspectRatio, isDisabled) => {
|
|
4261
|
+
return {
|
|
4262
|
+
'@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)) }, addImportantToEachRule({
|
|
4263
|
+
'::slotted': {
|
|
4264
|
+
'&(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle()),
|
|
4265
|
+
'&(img)': {
|
|
4266
|
+
height: '100%',
|
|
4267
|
+
width: '100%',
|
|
4268
|
+
objectFit: 'cover',
|
|
4269
|
+
},
|
|
4270
|
+
},
|
|
4271
|
+
})),
|
|
4272
|
+
root: Object.assign(Object.assign({ position: 'relative', height: 0, overflow: 'hidden', transform: 'translate3d(0,0,0)', borderRadius: borderRadiusMedium, color: getThemedTypographyColor('dark', 'primary') }, buildResponsiveStyles(aspectRatio, (ratio) => ({
|
|
4273
|
+
paddingTop: aspectRatioPaddingMap[ratio],
|
|
4274
|
+
}))), (!isDisabled &&
|
|
4275
|
+
hoverMediaQuery({
|
|
4276
|
+
'&:hover .image-container': {
|
|
4277
|
+
transform: 'scale3d(1.05,1.05,1.05)',
|
|
4278
|
+
},
|
|
4279
|
+
}))),
|
|
4280
|
+
'image-container': Object.assign({ position: 'absolute', transition: getTransition('transform') }, getInsetJssStyle()),
|
|
4281
|
+
content: {
|
|
4282
|
+
position: 'absolute',
|
|
4283
|
+
left: 0,
|
|
4284
|
+
right: 0,
|
|
4285
|
+
display: 'flex',
|
|
4286
|
+
justifyItems: 'start',
|
|
4287
|
+
gap: spacingStaticMedium,
|
|
4288
|
+
borderRadius: borderRadiusMedium,
|
|
4289
|
+
'@media (forced-colors: active)': {
|
|
4290
|
+
background: 'rgba(0,0,0,0.7)',
|
|
4291
|
+
},
|
|
4292
|
+
},
|
|
4293
|
+
};
|
|
4294
|
+
};
|
|
4295
|
+
|
|
4296
|
+
const sizeMap$5 = {
|
|
4297
|
+
inherit: { fontSize: 'inherit' },
|
|
4298
|
+
default: { fontSize: fontSizeTextMedium },
|
|
4299
|
+
};
|
|
4300
|
+
const getButtonLinkTileStyles = (aspectRatio, size, weight, // to get deprecated semibold typed
|
|
4301
|
+
align, compact, hasGradient, isDisabled) => {
|
|
4302
|
+
const isTopAligned = align === 'top';
|
|
4303
|
+
return Object.assign({}, mergeDeep(getTileBaseStyles(aspectRatio, isDisabled), {
|
|
4304
|
+
'@global': {
|
|
4305
|
+
p: Object.assign(Object.assign({ maxWidth: pxToRemWithUnit(550), margin: 0 }, textLargeStyle), mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$5[s]), buildResponsiveStyles(weight, (w) => ({
|
|
4306
|
+
fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w), // mapping of the deprecated weight semibold
|
|
4307
|
+
})))),
|
|
4308
|
+
},
|
|
4309
|
+
content: Object.assign(Object.assign(Object.assign({ display: 'grid' }, (isTopAligned ? { top: 0 } : { bottom: 0 })), { padding: isTopAligned
|
|
4310
|
+
? `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`
|
|
4311
|
+
: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}` }), mergeDeep(hasGradient &&
|
|
4312
|
+
buildResponsiveStyles(compact, (isCompact) => isCompact && isTopAligned ? gradientToBottomStyle : gradientToTopStyle), buildResponsiveStyles(compact, (isCompact) => isCompact // TODO: use flex
|
|
4313
|
+
? Object.assign({ alignItems: 'center', gridTemplateColumns: 'auto 24px', gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : {
|
|
4314
|
+
gridTemplateRows: 'auto auto',
|
|
4315
|
+
gridTemplateColumns: 'auto',
|
|
4316
|
+
}))),
|
|
4317
|
+
'link-or-button-pure': buildResponsiveStyles(compact, (isCompact) => ({
|
|
4318
|
+
display: isCompact ? 'inline-block' : 'none',
|
|
4319
|
+
})),
|
|
4320
|
+
'link-or-button': Object.assign({ minHeight: '54px' }, buildResponsiveStyles(compact, (isCompact) => ({
|
|
4321
|
+
display: isCompact ? 'none' : 'inline-block',
|
|
4322
|
+
}))),
|
|
4323
|
+
}));
|
|
4324
|
+
};
|
|
4325
|
+
|
|
4326
|
+
const getComponentCss$S = (isDisabledOrLoading, ...args) => {
|
|
4327
|
+
const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
|
|
4328
|
+
return getCss(Object.assign(Object.assign({}, buttonLinkTileStyles), { root: Object.assign(Object.assign({}, buttonLinkTileStyles.root), { cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer' }) }));
|
|
4329
|
+
};
|
|
4330
|
+
|
|
4223
4331
|
const { primaryColor: darkThemePrimaryColor$1 } = getThemedColors('dark');
|
|
4224
4332
|
const { primaryColor: lightThemePrimaryColor$1 } = getThemedColors('light');
|
|
4225
4333
|
const getVariantColors = (variant, theme) => {
|
|
@@ -4295,7 +4403,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4295
4403
|
};
|
|
4296
4404
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4297
4405
|
};
|
|
4298
|
-
const getComponentCss$
|
|
4406
|
+
const getComponentCss$R = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
|
|
4299
4407
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4300
4408
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4301
4409
|
const isPrimary = variant === 'primary';
|
|
@@ -4330,33 +4438,15 @@ const mediaQueryXXL = getMediaQueryMin('xxl');
|
|
|
4330
4438
|
const buttonSize$1 = `calc(${spacingStaticSmall} * 2 + ${fontLineHeight})`;
|
|
4331
4439
|
// + 2px, compensates hover offset of button-pure
|
|
4332
4440
|
const buttonGroupWidth = `calc(${buttonSize$1} * 2 + ${spacingStaticXSmall} + 2px)`;
|
|
4333
|
-
// we don't need to abstract spacing definitions since component content-wrapper is deprecated and will be removed soon
|
|
4334
|
-
const gridColumn1FrS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
|
|
4335
|
-
const gridColumn1FrXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
|
|
4336
4441
|
const spacingMap = {
|
|
4337
|
-
basic:
|
|
4338
|
-
|
|
4339
|
-
[mediaQueryS]: {
|
|
4340
|
-
padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${gridColumn1FrS})`,
|
|
4341
|
-
},
|
|
4342
|
-
[mediaQueryXXL]: {
|
|
4343
|
-
padding: `0 calc(${gridSafeZoneXXL} + ${gridGap} + ${gridColumn1FrXXL})`,
|
|
4344
|
-
},
|
|
4345
|
-
},
|
|
4346
|
-
extended: {
|
|
4347
|
-
padding: `0 ${gridSafeZoneBase}`,
|
|
4348
|
-
[mediaQueryXXL]: {
|
|
4349
|
-
padding: `0 ${gridSafeZoneXXL}`,
|
|
4350
|
-
},
|
|
4351
|
-
},
|
|
4442
|
+
basic: gridBasicOffset,
|
|
4443
|
+
extended: gridExtendedOffset,
|
|
4352
4444
|
};
|
|
4353
|
-
const getComponentCss$
|
|
4445
|
+
const getComponentCss$Q = (width, hasPagination, alignHeader, theme) => {
|
|
4354
4446
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
4355
4447
|
const isHeaderAlignCenter = alignHeader === 'center';
|
|
4356
4448
|
return getCss(Object.assign({ '@global': {
|
|
4357
|
-
':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column',
|
|
4358
|
-
// relevant for viewport width > 2560px
|
|
4359
|
-
paddingLeft: `calc(50% - ${gridWidthMax} / 2)`, paddingRight: `calc(50% - ${gridWidthMax} / 2)`, boxSizing: 'content-box' }, hostHiddenStyles)),
|
|
4449
|
+
':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', boxSizing: 'content-box' }, hostHiddenStyles)),
|
|
4360
4450
|
[selectorHeading]: addImportantToEachRule(Object.assign(Object.assign({}, headingXLargeStyle), { maxWidth: '56.25rem', margin: 0 })),
|
|
4361
4451
|
[selectorDescription]: addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { maxWidth: '34.375rem', margin: `${spacingFluidXSmall} 0 0` })),
|
|
4362
4452
|
[`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
|
|
@@ -4370,11 +4460,16 @@ const getComponentCss$O = (width, hasPagination, alignHeader, theme) => {
|
|
|
4370
4460
|
gridColumn: '1 / 3',
|
|
4371
4461
|
},
|
|
4372
4462
|
}),
|
|
4373
|
-
}, header:
|
|
4374
|
-
|
|
4463
|
+
}, header: {
|
|
4464
|
+
display: 'grid',
|
|
4465
|
+
padding: `0 ${spacingMap[width].base}`,
|
|
4466
|
+
[mediaQueryS]: Object.assign(Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
|
|
4375
4467
|
justifyItems: 'center', // relevant when max-width of heading or description is reached
|
|
4376
|
-
})),
|
|
4377
|
-
|
|
4468
|
+
})), { padding: `0 ${spacingMap[width].s}` }),
|
|
4469
|
+
[mediaQueryXXL]: {
|
|
4470
|
+
padding: `0 ${spacingMap[width].xxl}`,
|
|
4471
|
+
},
|
|
4472
|
+
}, nav: {
|
|
4378
4473
|
display: 'none',
|
|
4379
4474
|
[mediaQueryS]: {
|
|
4380
4475
|
display: 'flex',
|
|
@@ -4387,9 +4482,18 @@ const getComponentCss$O = (width, hasPagination, alignHeader, theme) => {
|
|
|
4387
4482
|
}, splide: {
|
|
4388
4483
|
overflow: 'hidden',
|
|
4389
4484
|
// visibility: 'hidden',
|
|
4390
|
-
'&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule(
|
|
4391
|
-
|
|
4392
|
-
|
|
4485
|
+
'&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule({
|
|
4486
|
+
padding: `0 ${spacingMap[width].base}`,
|
|
4487
|
+
[getMediaQueryMax('xs')]: {
|
|
4488
|
+
paddingRight: `calc(${gridBasicOffsetBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
|
|
4489
|
+
},
|
|
4490
|
+
[mediaQueryS]: {
|
|
4491
|
+
padding: `0 ${spacingMap[width].s}`,
|
|
4492
|
+
},
|
|
4493
|
+
[mediaQueryXXL]: {
|
|
4494
|
+
padding: `0 ${spacingMap[width].xxl}`,
|
|
4495
|
+
},
|
|
4496
|
+
})), { '&--draggable': {
|
|
4393
4497
|
userSelect: 'none',
|
|
4394
4498
|
WebkitUserSelect: 'none',
|
|
4395
4499
|
WebkitTouchCallout: 'none',
|
|
@@ -4492,7 +4596,7 @@ const getInlineSVGBackgroundImage = (path) => {
|
|
|
4492
4596
|
return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
|
|
4493
4597
|
};
|
|
4494
4598
|
|
|
4495
|
-
const getComponentCss$
|
|
4599
|
+
const getComponentCss$P = (hideLabel, state, isDisabled, theme) => {
|
|
4496
4600
|
const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
|
|
4497
4601
|
const indeterminateIconColor = getThemedColors(theme).primaryColor.replace(/#/g, '%23');
|
|
4498
4602
|
return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
|
|
@@ -4512,34 +4616,34 @@ const getComponentCss$N = (hideLabel, state, isDisabled, theme) => {
|
|
|
4512
4616
|
}));
|
|
4513
4617
|
};
|
|
4514
4618
|
|
|
4515
|
-
const
|
|
4619
|
+
const widthMap = {
|
|
4620
|
+
narrow: gridNarrowOffset,
|
|
4621
|
+
basic: gridBasicOffset,
|
|
4622
|
+
extended: gridExtendedOffset,
|
|
4623
|
+
};
|
|
4624
|
+
const getComponentCss$O = (width) => {
|
|
4516
4625
|
return getCss({
|
|
4517
4626
|
'@global': {
|
|
4518
4627
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
4519
4628
|
},
|
|
4520
|
-
root:
|
|
4629
|
+
root: Object.assign({ minWidth: 0 }, (['full', 'fluid'].includes(width)
|
|
4630
|
+
? {
|
|
4631
|
+
padding: `0 ${gridFullOffset}`,
|
|
4632
|
+
}
|
|
4633
|
+
: {
|
|
4634
|
+
padding: `0 ${widthMap[width].base}`,
|
|
4635
|
+
[getMediaQueryMin('s')]: {
|
|
4636
|
+
padding: `0 ${widthMap[width].s}`,
|
|
4637
|
+
},
|
|
4638
|
+
[getMediaQueryMin('xxl')]: {
|
|
4639
|
+
padding: `0 ${widthMap[width].xxl}`,
|
|
4640
|
+
},
|
|
4641
|
+
})),
|
|
4521
4642
|
});
|
|
4522
4643
|
};
|
|
4523
4644
|
|
|
4524
4645
|
const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
4525
4646
|
|
|
4526
|
-
const getThemedTypographyColor = (theme, textColor) => {
|
|
4527
|
-
const { primaryColor, contrastHighColor, contrastMediumColor, contrastLowColor, successColor, errorColor, warningColor, infoColor, } = getThemedColors(theme);
|
|
4528
|
-
const colorMap = {
|
|
4529
|
-
primary: primaryColor,
|
|
4530
|
-
default: primaryColor,
|
|
4531
|
-
'contrast-low': contrastLowColor,
|
|
4532
|
-
'contrast-medium': contrastMediumColor,
|
|
4533
|
-
'contrast-high': contrastHighColor,
|
|
4534
|
-
'notification-success': successColor,
|
|
4535
|
-
'notification-warning': warningColor,
|
|
4536
|
-
'notification-error': errorColor,
|
|
4537
|
-
'notification-info': infoColor,
|
|
4538
|
-
inherit: 'currentColor',
|
|
4539
|
-
};
|
|
4540
|
-
return colorMap[textColor];
|
|
4541
|
-
};
|
|
4542
|
-
|
|
4543
4647
|
const getTypographyRootJssStyle = (baseTextStyle, responsiveStyle, align, color, ellipsis, theme) => {
|
|
4544
4648
|
return Object.assign(Object.assign(Object.assign(Object.assign({ margin: 0, padding: 0 }, baseTextStyle), { color: getThemedTypographyColor(theme, color), textAlign: align, letterSpacing: 'normal', listStyleType: 'none', whiteSpace: 'inherit' }), (ellipsis && {
|
|
4545
4649
|
maxWidth: '100%',
|
|
@@ -4568,12 +4672,12 @@ const getTypographySlottedJssStyle = () => {
|
|
|
4568
4672
|
};
|
|
4569
4673
|
};
|
|
4570
4674
|
|
|
4571
|
-
const sizeMap$
|
|
4675
|
+
const sizeMap$4 = {
|
|
4572
4676
|
small: fontSizeDisplaySmall,
|
|
4573
4677
|
medium: fontSizeDisplayMedium,
|
|
4574
4678
|
large: fontSizeDisplayLarge,
|
|
4575
4679
|
};
|
|
4576
|
-
const getComponentCss$
|
|
4680
|
+
const getComponentCss$N = (size, align, color, ellipsis, theme) => {
|
|
4577
4681
|
return getCss({
|
|
4578
4682
|
'@global': {
|
|
4579
4683
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -4582,12 +4686,12 @@ const getComponentCss$L = (size, align, color, ellipsis, theme) => {
|
|
|
4582
4686
|
},
|
|
4583
4687
|
},
|
|
4584
4688
|
root: getTypographyRootJssStyle(displayLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
|
|
4585
|
-
fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$
|
|
4689
|
+
fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$4[sizeValue],
|
|
4586
4690
|
})), align, color, ellipsis, theme),
|
|
4587
4691
|
});
|
|
4588
4692
|
};
|
|
4589
4693
|
|
|
4590
|
-
const getComponentCss$
|
|
4694
|
+
const getComponentCss$M = (color, orientation, theme) => {
|
|
4591
4695
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
4592
4696
|
const colorMap = {
|
|
4593
4697
|
'contrast-low': contrastLowColor,
|
|
@@ -4602,7 +4706,21 @@ const getComponentCss$K = (color, orientation, theme) => {
|
|
|
4602
4706
|
});
|
|
4603
4707
|
};
|
|
4604
4708
|
|
|
4605
|
-
const getComponentCss$
|
|
4709
|
+
const getComponentCss$L = (state, labelSize, hasLabel, theme) => {
|
|
4710
|
+
return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
|
|
4711
|
+
margin: 0,
|
|
4712
|
+
padding: 0,
|
|
4713
|
+
border: 'none',
|
|
4714
|
+
} }, (hasLabel && {
|
|
4715
|
+
legend: Object.assign({ margin: `0 0 ${spacingStaticMedium}`, padding: 0, color: getThemedColors(theme).primaryColor }, (labelSize === 'small' ? headingSmallStyle : headingMediumStyle)),
|
|
4716
|
+
})) }, getFunctionalComponentRequiredStyles()), mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
|
|
4717
|
+
message: {
|
|
4718
|
+
marginTop: spacingStaticMedium,
|
|
4719
|
+
},
|
|
4720
|
+
})));
|
|
4721
|
+
};
|
|
4722
|
+
|
|
4723
|
+
const getComponentCss$K = (state, labelSize, hasLabel, theme) => {
|
|
4606
4724
|
return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
|
|
4607
4725
|
margin: 0,
|
|
4608
4726
|
padding: 0,
|
|
@@ -4626,7 +4744,7 @@ const flexItemWidths = {
|
|
|
4626
4744
|
full: 100,
|
|
4627
4745
|
auto: 'auto',
|
|
4628
4746
|
};
|
|
4629
|
-
const getComponentCss$
|
|
4747
|
+
const getComponentCss$J = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
4630
4748
|
return getCss({
|
|
4631
4749
|
'@global': {
|
|
4632
4750
|
':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
|
|
@@ -4644,7 +4762,7 @@ const getComponentCss$I = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
4644
4762
|
});
|
|
4645
4763
|
};
|
|
4646
4764
|
|
|
4647
|
-
const getComponentCss$
|
|
4765
|
+
const getComponentCss$I = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
4648
4766
|
return getCss({
|
|
4649
4767
|
'@global': {
|
|
4650
4768
|
':host': addImportantToEachRule(mergeDeep(hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
|
|
@@ -4666,7 +4784,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
4666
4784
|
const gridItemWidths = [
|
|
4667
4785
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
4668
4786
|
];
|
|
4669
|
-
const getComponentCss$
|
|
4787
|
+
const getComponentCss$H = (size, offset) => {
|
|
4670
4788
|
return getCss({
|
|
4671
4789
|
'@global': {
|
|
4672
4790
|
':host': addImportantToEachRule(Object.assign(Object.assign({ paddingLeft: gutter$1, paddingRight: gutter$1, boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
|
|
@@ -4680,7 +4798,7 @@ const getComponentCss$G = (size, offset) => {
|
|
|
4680
4798
|
};
|
|
4681
4799
|
|
|
4682
4800
|
const gutter = `calc(${gridGap} / -2)`;
|
|
4683
|
-
const getComponentCss$
|
|
4801
|
+
const getComponentCss$G = (direction, wrap) => {
|
|
4684
4802
|
return getCss({
|
|
4685
4803
|
'@global': {
|
|
4686
4804
|
':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'flex', flex: 'auto', width: 'auto', marginLeft: gutter, marginRight: gutter }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))))),
|
|
@@ -4688,14 +4806,14 @@ const getComponentCss$F = (direction, wrap) => {
|
|
|
4688
4806
|
});
|
|
4689
4807
|
};
|
|
4690
4808
|
|
|
4691
|
-
const sizeMap$
|
|
4809
|
+
const sizeMap$3 = {
|
|
4692
4810
|
small: fontSizeHeadingSmall,
|
|
4693
4811
|
medium: fontSizeHeadingMedium,
|
|
4694
4812
|
large: fontSizeHeadingLarge,
|
|
4695
4813
|
'x-large': fontSizeHeadingXLarge,
|
|
4696
4814
|
'xx-large': fontSizeHeadingXXLarge,
|
|
4697
4815
|
};
|
|
4698
|
-
const getComponentCss$
|
|
4816
|
+
const getComponentCss$F = (size, align, color, ellipsis, theme) => {
|
|
4699
4817
|
return getCss({
|
|
4700
4818
|
'@global': {
|
|
4701
4819
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -4704,7 +4822,7 @@ const getComponentCss$E = (size, align, color, ellipsis, theme) => {
|
|
|
4704
4822
|
},
|
|
4705
4823
|
},
|
|
4706
4824
|
root: getTypographyRootJssStyle(headingXXLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
|
|
4707
|
-
fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$
|
|
4825
|
+
fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$3[sizeValue],
|
|
4708
4826
|
})), align, color, ellipsis, theme),
|
|
4709
4827
|
});
|
|
4710
4828
|
};
|
|
@@ -4749,7 +4867,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
4749
4867
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
4750
4868
|
};
|
|
4751
4869
|
};
|
|
4752
|
-
const getComponentCss$
|
|
4870
|
+
const getComponentCss$E = (variant, align, color, ellipsis, theme) => {
|
|
4753
4871
|
return getCss({
|
|
4754
4872
|
'@global': {
|
|
4755
4873
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -4775,16 +4893,16 @@ const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
|
|
|
4775
4893
|
const filterLightNotificationSuccess = toFilter([62, 61, 551, 86, 86, 80]);
|
|
4776
4894
|
const filterLightNotificationWarning = toFilter([74, 91, 343, 348, 92, 86]);
|
|
4777
4895
|
const filterLightNotificationError = toFilter([25, 62, 2003, 335, 100, 97]);
|
|
4778
|
-
const filterLightNotificationInfo = toFilter([
|
|
4896
|
+
const filterLightNotificationInfo = toFilter([44, 100, 492, 195, 86, 221]);
|
|
4779
4897
|
const filterDarkNotificationSuccess = toFilter([59, 22, 1342, 86, 96, 88]);
|
|
4780
4898
|
const filterDarkNotificationWarning = toFilter([72, 94, 303, 354, 89, 94]);
|
|
4781
4899
|
const filterDarkNotificationError = toFilter([28, 34, 3133, 333, 95, 100]);
|
|
4782
|
-
const filterDarkNotificationInfo = toFilter([
|
|
4900
|
+
const filterDarkNotificationInfo = toFilter([56, 77, 4175, 198, 104, 98]);
|
|
4783
4901
|
|
|
4784
4902
|
const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
|
|
4785
4903
|
const filterDarkPrimary = toFilter([97, 55, 2840, 180, 114, 103]);
|
|
4786
4904
|
|
|
4787
|
-
const sizeMap$
|
|
4905
|
+
const sizeMap$2 = {
|
|
4788
4906
|
'xx-small': fontSizeTextXXSmall,
|
|
4789
4907
|
'x-small': fontSizeTextXSmall,
|
|
4790
4908
|
small: fontSizeTextSmall,
|
|
@@ -4826,7 +4944,7 @@ const forceRerenderAnimationStyle = {
|
|
|
4826
4944
|
};
|
|
4827
4945
|
const keyFramesLight = 'rerender-light';
|
|
4828
4946
|
const keyFramesDark = 'rerender-dark';
|
|
4829
|
-
const getComponentCss$
|
|
4947
|
+
const getComponentCss$D = (color, size, theme) => {
|
|
4830
4948
|
const isColorInherit = color === 'inherit';
|
|
4831
4949
|
const isSizeInherit = size === 'inherit';
|
|
4832
4950
|
const isDark = isThemeDark(theme);
|
|
@@ -4842,7 +4960,7 @@ const getComponentCss$C = (color, size, theme) => {
|
|
|
4842
4960
|
: {
|
|
4843
4961
|
width: fontLineHeight,
|
|
4844
4962
|
height: fontLineHeight,
|
|
4845
|
-
font: `${sizeMap$
|
|
4963
|
+
font: `${sizeMap$2[size]} ${fontFamily}`,
|
|
4846
4964
|
})) }, (!isColorInherit && {
|
|
4847
4965
|
[`@keyframes ${isDark ? keyFramesDark : keyFramesLight}`]: forceRerenderAnimationStyle,
|
|
4848
4966
|
})),
|
|
@@ -4893,7 +5011,7 @@ const getNotificationContentJssStyle = () => ({
|
|
|
4893
5011
|
});
|
|
4894
5012
|
|
|
4895
5013
|
const mediaQueryMaxS = getMediaQueryMax('s');
|
|
4896
|
-
const getComponentCss$
|
|
5014
|
+
const getComponentCss$C = (state, hasAction, hasClose, theme) => {
|
|
4897
5015
|
return getCss(Object.assign({ '@global': {
|
|
4898
5016
|
':host': addImportantToEachRule(Object.assign(Object.assign({}, getNotificationRootJssStyle(state, hasAction, hasClose, theme)), hostHiddenStyles)),
|
|
4899
5017
|
h5: headingSmallStyle,
|
|
@@ -4911,7 +5029,7 @@ const getComponentCss$B = (state, hasAction, hasClose, theme) => {
|
|
|
4911
5029
|
})));
|
|
4912
5030
|
};
|
|
4913
5031
|
|
|
4914
|
-
const getComponentCss$
|
|
5032
|
+
const getComponentCss$B = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
4915
5033
|
const { focusColor } = getThemedColors(theme);
|
|
4916
5034
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4917
5035
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
|
|
@@ -4938,7 +5056,7 @@ const getComponentCss$A = (icon, iconSource, active, stretch, size, hideLabel, a
|
|
|
4938
5056
|
} })));
|
|
4939
5057
|
};
|
|
4940
5058
|
|
|
4941
|
-
const getComponentCss$
|
|
5059
|
+
const getComponentCss$A = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
|
|
4942
5060
|
const { focusColor } = getThemedColors(theme);
|
|
4943
5061
|
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && {
|
|
4944
5062
|
'@global': addImportantToEachRule({
|
|
@@ -4963,67 +5081,27 @@ const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
4963
5081
|
}))));
|
|
4964
5082
|
};
|
|
4965
5083
|
|
|
4966
|
-
const
|
|
4967
|
-
regular: fontWeightRegular,
|
|
4968
|
-
'semi-bold': fontWeightSemiBold$1,
|
|
4969
|
-
bold: fontWeightBold,
|
|
4970
|
-
};
|
|
4971
|
-
const getFontWeight = (weight) => {
|
|
4972
|
-
return fontWeightMap[weight];
|
|
4973
|
-
};
|
|
5084
|
+
const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
|
|
4974
5085
|
|
|
4975
|
-
const
|
|
4976
|
-
|
|
4977
|
-
'
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
}
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
5086
|
+
const getComponentCss$z = (aspectRatio, weight, direction, hasDescription) => {
|
|
5087
|
+
const tileBaseStyles = getTileBaseStyles(aspectRatio);
|
|
5088
|
+
return getCss(Object.assign(Object.assign(Object.assign(Object.assign({}, tileBaseStyles), { '@global': Object.assign(Object.assign({}, tileBaseStyles['@global']), { [LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS.join(',')]: {
|
|
5089
|
+
margin: addImportantToRule(0),
|
|
5090
|
+
} }), content: Object.assign(Object.assign(Object.assign({}, tileBaseStyles.content), { flexDirection: 'column', bottom: 0, padding: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}` }), gradientToTopStyle), model: {
|
|
5091
|
+
position: 'absolute',
|
|
5092
|
+
top: spacingFluidMedium,
|
|
5093
|
+
left: spacingFluidMedium,
|
|
5094
|
+
}, heading: Object.assign(Object.assign({ margin: 0 }, textLargeStyle), buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) }))) }), (hasDescription && {
|
|
5095
|
+
description: Object.assign({ margin: '-12px 0 0 ' }, textSmallStyle),
|
|
5096
|
+
})), { 'link-group': Object.assign({ display: 'flex', width: '100%', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getGroupDirectionJssStyles)), 'link-overlay': Object.assign({
|
|
5097
|
+
// covers entire tile, used for expanded click-area only
|
|
5098
|
+
position: 'fixed' }, getInsetJssStyle()) }));
|
|
4988
5099
|
};
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
return getCss({
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
'::slotted(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle(0)),
|
|
4995
|
-
'::slotted(img)': {
|
|
4996
|
-
height: '100%',
|
|
4997
|
-
width: '100%',
|
|
4998
|
-
objectFit: 'cover',
|
|
4999
|
-
},
|
|
5000
|
-
})), { p: Object.assign(Object.assign({ color: getThemedTypographyColor('dark', 'primary'), maxWidth: pxToRemWithUnit(550), margin: 0 }, textLargeStyle), mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$2[s]), buildResponsiveStyles(weight, (w) => ({
|
|
5001
|
-
fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w),
|
|
5002
|
-
})))) }),
|
|
5003
|
-
root: Object.assign(Object.assign({ height: 0, position: 'relative', transform: 'translate3d(0,0,0)' }, hoverMediaQuery({
|
|
5004
|
-
'&:hover': {
|
|
5005
|
-
'& ::slotted(picture),::slotted(img)': addImportantToEachRule({
|
|
5006
|
-
transform: 'scale3d(1.05, 1.05, 1.05)',
|
|
5007
|
-
}),
|
|
5008
|
-
},
|
|
5009
|
-
})), buildResponsiveStyles(aspectRatio, (ratio) => ({
|
|
5010
|
-
paddingTop: aspectRatioPaddingTop[ratio],
|
|
5011
|
-
}))),
|
|
5012
|
-
'image-container': Object.assign({ position: 'absolute', overflow: 'hidden', borderRadius: borderRadiusMedium }, getInsetJssStyle(0)),
|
|
5013
|
-
content: Object.assign(Object.assign(Object.assign(Object.assign({ position: 'absolute' }, (isTopAligned ? { top: 0 } : { bottom: 0 })), { left: 0, right: 0, display: 'grid', justifyItems: 'start', borderRadius: borderRadiusMedium, padding: align === 'bottom'
|
|
5014
|
-
? `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}`
|
|
5015
|
-
: `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`, gap: spacingStaticMedium }), mergeDeep(hasGradient &&
|
|
5016
|
-
buildResponsiveStyles(compact, (isCompact) => getGradientBackground(isCompact, isTopAligned)), buildResponsiveStyles(compact, (isCompact) => isCompact
|
|
5017
|
-
? Object.assign({ alignItems: 'center', gridTemplateColumns: 'auto 24px', gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : { gridTemplateRows: 'auto auto', gridTemplateColumns: 'auto' }))), { '@media (forced-colors: active)': {
|
|
5018
|
-
background: 'rgba(0,0,0,0.7)',
|
|
5019
|
-
} }),
|
|
5020
|
-
'link-pure': buildResponsiveStyles(compact, (isCompact) => ({
|
|
5021
|
-
display: isCompact ? 'inline-block' : 'none',
|
|
5022
|
-
})),
|
|
5023
|
-
link: Object.assign({ minHeight: '54px' }, buildResponsiveStyles(compact, (isCompact) => ({ display: isCompact ? 'none' : 'inline-block' }))),
|
|
5024
|
-
// is used for expanded click-area only
|
|
5025
|
-
'link-overlay': Object.assign(Object.assign({ position: 'fixed' }, getInsetJssStyle(0)), { outline: 0 }),
|
|
5026
|
-
});
|
|
5100
|
+
|
|
5101
|
+
const getComponentCss$y = (...args) => {
|
|
5102
|
+
return getCss(Object.assign(Object.assign({}, getButtonLinkTileStyles(...args)), { 'link-overlay': Object.assign({
|
|
5103
|
+
// covers entire tile, used for expanded click-area only
|
|
5104
|
+
position: 'fixed' }, getInsetJssStyle()) }));
|
|
5027
5105
|
};
|
|
5028
5106
|
|
|
5029
5107
|
const baseSizes = {
|
|
@@ -5071,10 +5149,10 @@ const getFullscreenJssStyles = (fullscreen) => {
|
|
|
5071
5149
|
borderRadius: 0,
|
|
5072
5150
|
}
|
|
5073
5151
|
: {
|
|
5074
|
-
minWidth:
|
|
5075
|
-
maxWidth:
|
|
5152
|
+
minWidth: '276px',
|
|
5153
|
+
maxWidth: '1535.5px',
|
|
5076
5154
|
minHeight: 'auto',
|
|
5077
|
-
margin: `clamp(16px, 7vh, 192px) ${
|
|
5155
|
+
margin: `clamp(16px, 7vh, 192px) ${gridExtendedOffsetBase}`,
|
|
5078
5156
|
borderRadius: borderRadiusMedium,
|
|
5079
5157
|
};
|
|
5080
5158
|
};
|
|
@@ -5142,7 +5220,7 @@ const getComponentCss$w = (open, fullscreen, hasDismissButton, hasHeader) => {
|
|
|
5142
5220
|
border: 0,
|
|
5143
5221
|
},
|
|
5144
5222
|
[mediaQueryXl]: {
|
|
5145
|
-
margin: isFullscreenForXlAndXxl ? 0 : `min(192px, 10vh) ${
|
|
5223
|
+
margin: isFullscreenForXlAndXxl ? 0 : `min(192px, 10vh) ${gridExtendedOffsetBase}`,
|
|
5146
5224
|
},
|
|
5147
5225
|
}, buildResponsiveStyles(fullscreen, getFullscreenJssStyles)) }, (hasHeader && {
|
|
5148
5226
|
header: {
|
|
@@ -5391,7 +5469,7 @@ const getGradient = (theme, gradientColorTheme) => {
|
|
|
5391
5469
|
`rgba(${gradientColor},0.3) 68%,` +
|
|
5392
5470
|
`rgba(${gradientColor},0)`);
|
|
5393
5471
|
};
|
|
5394
|
-
const getComponentCss$r = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, theme) => {
|
|
5472
|
+
const getComponentCss$r = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, hasScrollbar, theme) => {
|
|
5395
5473
|
const { backgroundColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
|
|
5396
5474
|
const isDarkTheme = isThemeDark(theme);
|
|
5397
5475
|
const backgroundColorMap = {
|
|
@@ -5425,16 +5503,14 @@ const getComponentCss$r = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
|
|
|
5425
5503
|
margin: '0 -4px',
|
|
5426
5504
|
height: 'inherit',
|
|
5427
5505
|
},
|
|
5428
|
-
'scroll-area': {
|
|
5429
|
-
|
|
5430
|
-
padding: '4px',
|
|
5431
|
-
overflow: 'scroll hidden',
|
|
5506
|
+
'scroll-area': Object.assign({ gridArea: '1 / 1 / 1 / -1', padding: '4px', overflow: 'auto hidden' }, (!hasScrollbar && {
|
|
5507
|
+
// If scrollbar is disabled - hide scrollbar
|
|
5432
5508
|
msOverflowStyle: 'none' /* IE and Edge */,
|
|
5433
5509
|
scrollbarWidth: 'none' /* Firefox */,
|
|
5434
5510
|
'&::-webkit-scrollbar': {
|
|
5435
5511
|
display: 'none',
|
|
5436
5512
|
},
|
|
5437
|
-
},
|
|
5513
|
+
})),
|
|
5438
5514
|
// Extra wrapper needed to compensate different offset parent calculation depending on browser.
|
|
5439
5515
|
// Needed for position of status bar.
|
|
5440
5516
|
'scroll-wrapper': {
|
|
@@ -5717,7 +5793,7 @@ const getComponentCss$l = (state, disabled, theme) => {
|
|
|
5717
5793
|
height: fontLineHeight,
|
|
5718
5794
|
width: fontLineHeight,
|
|
5719
5795
|
},
|
|
5720
|
-
})), { '&:focus::after': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(
|
|
5796
|
+
})), { '&:focus::after': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle()), { border: `${borderWidthBase} solid ${focusColor}`, borderRadius: borderRadiusSmall }), '&:focus:not(:focus-visible)::after': {
|
|
5721
5797
|
borderColor: 'transparent',
|
|
5722
5798
|
} }),
|
|
5723
5799
|
} }, (!isStateCurrentOrUndefined && {
|
|
@@ -5819,7 +5895,7 @@ const getComponentCss$i = () => {
|
|
|
5819
5895
|
const getComponentCss$h = (multiline) => {
|
|
5820
5896
|
return getCss({
|
|
5821
5897
|
'@global': {
|
|
5822
|
-
':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ display: 'table-cell', padding:
|
|
5898
|
+
':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ display: 'table-cell', padding: spacingFluidSmall, margin: 0, whiteSpace: multiline ? 'normal' : 'nowrap' }, hostHiddenStyles))), { verticalAlign: 'middle' }),
|
|
5823
5899
|
},
|
|
5824
5900
|
});
|
|
5825
5901
|
};
|
|
@@ -5829,31 +5905,76 @@ const isSortable = (active, direction) => {
|
|
|
5829
5905
|
return active !== undefined && direction !== undefined;
|
|
5830
5906
|
};
|
|
5831
5907
|
|
|
5832
|
-
const
|
|
5833
|
-
const
|
|
5834
|
-
const
|
|
5908
|
+
const cssVariableTableHoverColor = '--p-internal-table-hover-color';
|
|
5909
|
+
const cssVariableTableBorderColor = '--p-internal-table-border-color';
|
|
5910
|
+
const cssVariableTableHeadCellIconFilter = '--p-internal-table-head-cell-icon-filter';
|
|
5911
|
+
const getComponentCss$g = (theme) => {
|
|
5912
|
+
const { primaryColor, hoverColor, contrastLowColor } = doGetThemedColors(theme);
|
|
5913
|
+
return getCss({
|
|
5914
|
+
'@global': {
|
|
5915
|
+
':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign({ display: 'block' }, textSmallStyle), { color: primaryColor, textAlign: 'left' }), hostHiddenStyles)),
|
|
5916
|
+
'::slotted(*)': addImportantToEachRule({
|
|
5917
|
+
[cssVariableTableHoverColor]: hoverColor,
|
|
5918
|
+
[cssVariableTableBorderColor]: contrastLowColor,
|
|
5919
|
+
[cssVariableTableHeadCellIconFilter]: isThemeDark(theme) ? 'invert(100%)' : 'none',
|
|
5920
|
+
}),
|
|
5921
|
+
},
|
|
5922
|
+
caption: {
|
|
5923
|
+
marginBottom: spacingFluidMedium,
|
|
5924
|
+
},
|
|
5925
|
+
table: {
|
|
5926
|
+
display: 'table',
|
|
5927
|
+
borderCollapse: 'collapse',
|
|
5928
|
+
width: '100%',
|
|
5929
|
+
whiteSpace: 'nowrap', // shouldn't be inherited for caption, that's why it's defined here
|
|
5930
|
+
},
|
|
5931
|
+
});
|
|
5932
|
+
};
|
|
5933
|
+
|
|
5934
|
+
const { hoverColor, focusColor } = getThemedColors('light'); // hover color and focus color are the same for light and dark
|
|
5935
|
+
const buttonBeforeOffsetVertical = '-2px';
|
|
5936
|
+
const buttonBeforeOffsetHorizontal = '-4px';
|
|
5937
|
+
const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
5835
5938
|
const sortable = isSortable(active, direction);
|
|
5836
|
-
return getCss(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'table-cell', padding:
|
|
5939
|
+
return getCss(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'table-cell', padding: `2px ${spacingFluidSmall} ${spacingFluidSmall}`, verticalAlign: 'bottom', whiteSpace: multiline ? 'normal' : 'nowrap' }, hostHiddenStyles)) }, (sortable
|
|
5837
5940
|
? {
|
|
5838
|
-
button: Object.assign(Object.assign(
|
|
5941
|
+
button: Object.assign(Object.assign({ position: 'relative', display: 'flex', gap: spacingStaticXSmall, width: 'auto', margin: 0, padding: 0, font: 'inherit', color: 'inherit', outline: 0, alignItems: 'flex-end', appearance: 'none', background: 'transparent', textAlign: 'left', border: 0, zIndex: 0, cursor: 'pointer', '&::before': {
|
|
5942
|
+
content: '""',
|
|
5943
|
+
position: 'absolute',
|
|
5944
|
+
top: buttonBeforeOffsetVertical,
|
|
5945
|
+
bottom: buttonBeforeOffsetVertical,
|
|
5946
|
+
right: buttonBeforeOffsetHorizontal,
|
|
5947
|
+
left: buttonBeforeOffsetHorizontal,
|
|
5948
|
+
borderRadius: borderRadiusSmall,
|
|
5949
|
+
zIndex: -1,
|
|
5950
|
+
transition: getTransition('background-color'),
|
|
5951
|
+
} }, hoverMediaQuery({
|
|
5952
|
+
'&:hover, &:focus': {
|
|
5839
5953
|
'& .icon': {
|
|
5840
5954
|
opacity: 1,
|
|
5841
5955
|
},
|
|
5842
|
-
}
|
|
5956
|
+
},
|
|
5957
|
+
'&:hover::before': Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }),
|
|
5958
|
+
})), { '&:focus::before': {
|
|
5959
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
5960
|
+
}, '&:not(:focus-visible)::before': {
|
|
5961
|
+
border: 0,
|
|
5962
|
+
} }),
|
|
5843
5963
|
}
|
|
5844
5964
|
: hideLabel && {
|
|
5845
5965
|
span: Object.assign(Object.assign({}, getTextHiddenJssStyle(true)), { display: 'block', border: 0 }),
|
|
5846
5966
|
})) }, (sortable && {
|
|
5847
5967
|
icon: {
|
|
5848
|
-
|
|
5968
|
+
transition: getTransition('opacity'),
|
|
5849
5969
|
opacity: active ? 1 : 0,
|
|
5850
5970
|
transform: `rotate3d(0,0,1,${isDirectionAsc(direction) ? 0 : 180}deg)`,
|
|
5851
|
-
transformOrigin: '50% 50%',
|
|
5971
|
+
transformOrigin: '50% 50%',
|
|
5972
|
+
filter: `var(${cssVariableTableHeadCellIconFilter})`,
|
|
5852
5973
|
},
|
|
5853
5974
|
})));
|
|
5854
5975
|
};
|
|
5855
5976
|
|
|
5856
|
-
const getComponentCss$
|
|
5977
|
+
const getComponentCss$e = () => {
|
|
5857
5978
|
return getCss({
|
|
5858
5979
|
'@global': {
|
|
5859
5980
|
':host': addImportantToEachRule(Object.assign({ display: 'table-row' }, hostHiddenStyles)),
|
|
@@ -5861,79 +5982,27 @@ const getComponentCss$f = () => {
|
|
|
5861
5982
|
});
|
|
5862
5983
|
};
|
|
5863
5984
|
|
|
5864
|
-
const getComponentCss$
|
|
5985
|
+
const getComponentCss$d = () => {
|
|
5865
5986
|
return getCss({
|
|
5866
5987
|
'@global': {
|
|
5867
|
-
':host': addImportantToEachRule(Object.assign({ display: 'table-header-group' }, hostHiddenStyles)),
|
|
5988
|
+
':host': addImportantToEachRule(Object.assign({ display: 'table-header-group', fontSize: fontSizeTextXSmall, lineHeight: fontLineHeight, fontWeight: fontWeightSemiBold }, hostHiddenStyles)),
|
|
5868
5989
|
},
|
|
5869
5990
|
});
|
|
5870
5991
|
};
|
|
5871
5992
|
|
|
5872
|
-
const getComponentCss$
|
|
5993
|
+
const getComponentCss$c = () => {
|
|
5873
5994
|
return getCss({
|
|
5874
5995
|
'@global': {
|
|
5875
|
-
':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'table-row' }, hostHiddenStyles), hoverMediaQuery({
|
|
5876
|
-
transition: getTransition('background-color'),
|
|
5996
|
+
':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'table-row', borderTop: `1px solid var(${cssVariableTableBorderColor})`, borderBottom: `1px solid var(${cssVariableTableBorderColor})`, transition: getTransition('background') }, hostHiddenStyles), hoverMediaQuery({
|
|
5877
5997
|
'&(:hover)': {
|
|
5878
|
-
|
|
5998
|
+
// ...frostedGlassStyle, // will result in not smooth transition when applied
|
|
5999
|
+
background: `var(${cssVariableTableHoverColor})`,
|
|
5879
6000
|
},
|
|
5880
6001
|
}))),
|
|
5881
6002
|
},
|
|
5882
6003
|
});
|
|
5883
6004
|
};
|
|
5884
6005
|
|
|
5885
|
-
const { primaryColor } = getThemedColors('light');
|
|
5886
|
-
const getComponentCss$c = () => {
|
|
5887
|
-
return getCss({
|
|
5888
|
-
'@global': {
|
|
5889
|
-
':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)),
|
|
5890
|
-
},
|
|
5891
|
-
caption: {
|
|
5892
|
-
marginBottom: spacingStaticSmall,
|
|
5893
|
-
[getMediaQueryMin('m')]: {
|
|
5894
|
-
marginBottom: spacingStaticMedium,
|
|
5895
|
-
},
|
|
5896
|
-
},
|
|
5897
|
-
root: {
|
|
5898
|
-
position: 'relative',
|
|
5899
|
-
},
|
|
5900
|
-
'scroll-area': Object.assign({ overflow: 'auto visible' }, getFocusJssStyle({ offset: -1 })),
|
|
5901
|
-
table: Object.assign(Object.assign({ position: 'relative', width: '100%', display: 'table' }, textSmallStyle), { textAlign: 'left', color: primaryColor, whiteSpace: 'nowrap' }),
|
|
5902
|
-
'scroll-trigger': {
|
|
5903
|
-
position: 'absolute',
|
|
5904
|
-
top: 0,
|
|
5905
|
-
right: '1px',
|
|
5906
|
-
width: '1px',
|
|
5907
|
-
height: '1px',
|
|
5908
|
-
visibility: 'hidden',
|
|
5909
|
-
},
|
|
5910
|
-
'scroll-indicator': {
|
|
5911
|
-
position: 'absolute',
|
|
5912
|
-
top: 0,
|
|
5913
|
-
right: 0,
|
|
5914
|
-
bottom: 0,
|
|
5915
|
-
paddingLeft: spacingStaticLarge,
|
|
5916
|
-
pointerEvents: 'none',
|
|
5917
|
-
display: 'flex',
|
|
5918
|
-
alignItems: 'center',
|
|
5919
|
-
background: 'linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%)',
|
|
5920
|
-
'&::before': {
|
|
5921
|
-
content: '""',
|
|
5922
|
-
position: 'absolute',
|
|
5923
|
-
top: 0,
|
|
5924
|
-
right: 0,
|
|
5925
|
-
bottom: 0,
|
|
5926
|
-
width: pxToRemWithUnit(48),
|
|
5927
|
-
pointerEvents: 'auto',
|
|
5928
|
-
},
|
|
5929
|
-
},
|
|
5930
|
-
'scroll-button': {
|
|
5931
|
-
padding: pxToRemWithUnit(12),
|
|
5932
|
-
pointerEvents: 'auto',
|
|
5933
|
-
},
|
|
5934
|
-
});
|
|
5935
|
-
};
|
|
5936
|
-
|
|
5937
6006
|
const tabsTransitionDuration = '.4s';
|
|
5938
6007
|
const transformSelector = (selector) => ['a', 'button'].map((tag) => selector.replace(/\[role]/g, tag)).join();
|
|
5939
6008
|
const getComponentCss$b = (size, weight, theme) => {
|
|
@@ -6271,27 +6340,27 @@ const getComponentCss$2 = (isDisabled, hideLabel, state, hasCounter, theme) => {
|
|
|
6271
6340
|
})));
|
|
6272
6341
|
};
|
|
6273
6342
|
|
|
6274
|
-
const
|
|
6275
|
-
const
|
|
6343
|
+
const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
|
|
6344
|
+
const cssVariablePositionBottomInternal = '--p-internal-toast-position-bottom';
|
|
6276
6345
|
const toastCloseClassName = 'close';
|
|
6277
6346
|
const getComponentCss = () => {
|
|
6278
6347
|
return getCss({
|
|
6279
6348
|
'@global': {
|
|
6280
|
-
':host': addImportantToEachRule(Object.assign({ position: 'fixed', left:
|
|
6349
|
+
':host': addImportantToEachRule(Object.assign({ position: 'fixed', left: gridExtendedOffsetBase, right: gridExtendedOffsetBase,
|
|
6281
6350
|
// Needs a not overridable internal css variable to cover default position depending on viewport size and to handle animation properly.
|
|
6282
6351
|
// In addition, a public css variable can be passed to overwrite the default position.
|
|
6283
|
-
[
|
|
6352
|
+
[cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 56px)`, bottom: `var(${cssVariablePositionBottomInternal})`, maxWidth: '42rem', zIndex: TOAST_Z_INDEX, [getMediaQueryMin('s')]: {
|
|
6284
6353
|
left: '64px',
|
|
6285
6354
|
right: 'auto',
|
|
6286
|
-
[
|
|
6287
|
-
bottom: `var(${
|
|
6355
|
+
[cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 64px)`,
|
|
6356
|
+
bottom: `var(${cssVariablePositionBottomInternal})`,
|
|
6288
6357
|
} }, hostHiddenStyles)),
|
|
6289
|
-
'@keyframes in': getKeyframesMobile('in',
|
|
6290
|
-
'@keyframes out': getKeyframesMobile('out',
|
|
6358
|
+
'@keyframes in': getKeyframesMobile('in', cssVariablePositionBottomInternal),
|
|
6359
|
+
'@keyframes out': getKeyframesMobile('out', cssVariablePositionBottomInternal),
|
|
6291
6360
|
},
|
|
6292
6361
|
hydrated: getAnimationIn('in', "production" !== 'production' ),
|
|
6293
6362
|
[toastCloseClassName]: getAnimationOut('out'),
|
|
6294
6363
|
});
|
|
6295
6364
|
};
|
|
6296
6365
|
|
|
6297
|
-
export { getComponentCss$
|
|
6366
|
+
export { getComponentCss$W as getAccordionCss, getComponentCss$V as getBannerCss, getComponentCss$R as getButtonCss, getComponentCss$U as getButtonGroupCss, getComponentCss$T as getButtonPureCss, getComponentCss$S as getButtonTileCss, getComponentCss$Q as getCarouselCss, getComponentCss$P as getCheckboxWrapperCss, getComponentCss$O as getContentWrapperCss, getComponentCss$N as getDisplayCss, getComponentCss$M as getDividerCss, getComponentCss$K as getFieldsetCss, getComponentCss$L as getFieldsetWrapperCss, getComponentCss$I as getFlexCss, getComponentCss$J as getFlexItemCss, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$G as getGridCss, getComponentCss$H as getGridItemCss, getComponentCss$F as getHeadingCss, getComponentCss$E as getHeadlineCss, getComponentCss$D as getIconCss, getComponentCss$C as getInlineNotificationCss, getComponentCss$A as getLinkCss, getComponentCss$B as getLinkPureCss, getComponentCss$A as getLinkSocialCss, getComponentCss$y as getLinkTileCss, getComponentCss$z as getLinkTileModelSignatureCss, getComponentCss$x as getMarqueCss, getComponentCss$w as getModalCss, getComponentCss$v as getModelSignatureCss, getComponentCss$u as getPaginationCss, getComponentCss$t as getPopoverCss, getComponentCss$s as getRadioButtonWrapperCss, getComponentCss$r as getScrollerCss, getComponentCss$p as getSegmentedControlCss, getComponentCss$q as getSegmentedControlItemCss, getComponentCss$o as getSelectWrapperCss, getComponentCss$m as getSpinnerCss, getComponentCss$k as getStepperHorizontalCss, getComponentCss$l as getStepperHorizontalItemCss, getComponentCss$j as getSwitchCss, getComponentCss$i as getTableBodyCss, getComponentCss$h as getTableCellCss, getComponentCss$g as getTableCss, getComponentCss$f as getTableHeadCellCss, getComponentCss$d as getTableHeadCss, getComponentCss$e as getTableHeadRowCss, getComponentCss$c as getTableRowCss, getComponentCss$b as getTabsBarCss, getComponentCss$9 as getTabsCss, getComponentCss$a as getTabsItemCss, getComponentCss$7 as getTagCss, getComponentCss$8 as getTagDismissibleCss, getComponentCss$3 as getTextCss, getComponentCss$6 as getTextFieldWrapperCss, getComponentCss$5 as getTextListCss, getComponentCss$4 as getTextListItemCss, getComponentCss$2 as getTextareaWrapperCss, getComponentCss as getToastCss };
|