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