@porsche-design-system/components-react 3.0.0-alpha.3 → 3.0.0-alpha.5
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 +99 -0
- package/esm/lib/components/button-tile.wrapper.js +22 -0
- package/esm/lib/components/carousel.wrapper.js +3 -3
- package/esm/lib/components/crest.wrapper.js +22 -0
- 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/marque.wrapper.js +1 -0
- package/esm/lib/components/scroller.wrapper.js +3 -3
- package/esm/lib/components/table.wrapper.js +5 -3
- package/esm/lib/components/wordmark.wrapper.js +22 -0
- package/esm/public-api.js +5 -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/crest.wrapper.d.ts +30 -0
- package/lib/components/crest.wrapper.js +24 -0
- 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 +5 -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/marque.wrapper.d.ts +1 -0
- package/lib/components/marque.wrapper.js +1 -0
- 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/components/wordmark.wrapper.d.ts +46 -0
- package/lib/components/wordmark.wrapper.js +24 -0
- package/lib/types.d.ts +89 -43
- package/package.json +2 -2
- package/public-api.js +10 -0
- package/ssr/components/dist/styles/esm/styles-entry.js +558 -476
- package/ssr/components/dist/utils/esm/utils-entry.js +74 -41
- 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/crest.wrapper.js +37 -0
- 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/marque.wrapper.js +1 -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/components/wordmark.wrapper.js +37 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +7 -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 +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +90 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +7 -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/crest.js +18 -0
- 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 +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +97 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +9 -3
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +6 -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 +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +6 -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 +7 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +6 -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 +6 -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 +5 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +6 -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 +6 -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 +9 -10
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +6 -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 +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +6 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +6 -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/lib/dsr-components/wordmark.js +19 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/public-api.js +10 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +503 -426
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +72 -42
- 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/crest.wrapper.js +35 -0
- 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/marque.wrapper.js +1 -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/components/wordmark.wrapper.js +35 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +8 -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 +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +88 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +9 -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/crest.js +16 -0
- 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 +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +95 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +11 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +4 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +5 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +6 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +10 -11
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +17 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.js +5 -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/crest.wrapper.d.ts +30 -0
- 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 +5 -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/marque.wrapper.d.ts +1 -0
- package/ssr/lib/components/scroller.wrapper.d.ts +8 -0
- package/ssr/lib/components/table.wrapper.d.ts +9 -1
- package/ssr/lib/components/wordmark.wrapper.d.ts +46 -0
- package/ssr/lib/dsr-components/button-tile.d.ts +5 -0
- package/ssr/lib/dsr-components/crest.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/marque.d.ts +1 -0
- package/ssr/lib/dsr-components/table.d.ts +0 -6
- package/ssr/lib/dsr-components/wordmark.d.ts +5 -0
- package/ssr/lib/types.d.ts +89 -43
- package/styles/_index.scss +1 -0
- package/styles/scss.scss +0 -1
|
@@ -49,6 +49,12 @@ 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
|
+
|
|
56
|
+
const themeLightStateFocus = '#1A44EA';
|
|
57
|
+
|
|
52
58
|
const fontFamily = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
53
59
|
|
|
54
60
|
const fontHyphenationStyle = {
|
|
@@ -97,13 +103,13 @@ const fontSizeDisplayLarge = 'clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)';
|
|
|
97
103
|
|
|
98
104
|
const fontWeightRegular = 400;
|
|
99
105
|
|
|
100
|
-
const fontWeightSemiBold
|
|
106
|
+
const fontWeightSemiBold = 600;
|
|
101
107
|
|
|
102
108
|
const fontWeightBold = 700;
|
|
103
109
|
|
|
104
110
|
const fontWeight = {
|
|
105
111
|
regular: fontWeightRegular,
|
|
106
|
-
semiBold: fontWeightSemiBold
|
|
112
|
+
semiBold: fontWeightSemiBold,
|
|
107
113
|
bold: fontWeightBold,
|
|
108
114
|
};
|
|
109
115
|
|
|
@@ -172,15 +178,60 @@ const spacingFluidMedium = 'clamp(16px, 1.25vw + 12px, 36px)';
|
|
|
172
178
|
|
|
173
179
|
const gridGap = spacingFluidMedium;
|
|
174
180
|
|
|
175
|
-
const
|
|
176
|
-
|
|
181
|
+
const _gridWidthMax = '2560px';
|
|
177
182
|
// fluid sizing calculated by https://fluidtypography.com/#app-get-started
|
|
178
|
-
|
|
179
|
-
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
|
|
180
186
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
+
};
|
|
184
235
|
|
|
185
236
|
function getMediaQueryMax(max) {
|
|
186
237
|
return `@media(max-width:${breakpoint[max] - 1}px)`;
|
|
@@ -217,7 +268,7 @@ const displayLargeStyle = {
|
|
|
217
268
|
font: `${_displayFontPartA}${fontSizeDisplayLarge}${_displayFontPartB}`,
|
|
218
269
|
};
|
|
219
270
|
|
|
220
|
-
const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightSemiBold
|
|
271
|
+
const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightSemiBold} `;
|
|
221
272
|
const _headingFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
222
273
|
|
|
223
274
|
const headingSmallStyle = {
|
|
@@ -3662,7 +3713,7 @@ const themeLight = {
|
|
|
3662
3713
|
backgroundSurfaceColorDarken: '#CBCED7',
|
|
3663
3714
|
backgroundSurfaceColorLighten: '#FFFFFF',
|
|
3664
3715
|
contrastLowColor: '#D8D8DB',
|
|
3665
|
-
contrastMediumColor: '#
|
|
3716
|
+
contrastMediumColor: '#6B6D70',
|
|
3666
3717
|
contrastHighColor: '#535457',
|
|
3667
3718
|
contrastHighColorDarken: '#353638',
|
|
3668
3719
|
contrastHighColorLighten: '#717276',
|
|
@@ -3671,24 +3722,24 @@ const themeLight = {
|
|
|
3671
3722
|
activeColor: 'rgba(148, 149, 152, 0.20)',
|
|
3672
3723
|
focusColor: '#1A44EA',
|
|
3673
3724
|
disabledColor: '#949598',
|
|
3674
|
-
errorColor: '#
|
|
3675
|
-
errorColorDarken: '#
|
|
3676
|
-
errorSoftColor: '#
|
|
3677
|
-
errorSoftColorDarken: '#
|
|
3725
|
+
errorColor: '#CC1922',
|
|
3726
|
+
errorColorDarken: '#951219',
|
|
3727
|
+
errorSoftColor: '#FFE2E4',
|
|
3728
|
+
errorSoftColorDarken: '#F4CED1',
|
|
3678
3729
|
errorSoftColorLighten: '#FFFFFF',
|
|
3679
|
-
successColor: '#
|
|
3680
|
-
successColorDarken: '#
|
|
3681
|
-
successSoftColor: '#
|
|
3682
|
-
successSoftColorDarken: '#
|
|
3730
|
+
successColor: '#197E10',
|
|
3731
|
+
successColorDarken: '#0E4809',
|
|
3732
|
+
successSoftColor: '#E4FFEC',
|
|
3733
|
+
successSoftColorDarken: '#D0F4DB',
|
|
3683
3734
|
successSoftColorLighten: '#FFFFFF',
|
|
3684
|
-
warningColor: '#
|
|
3685
|
-
warningSoftColor: '#
|
|
3686
|
-
warningSoftColorDarken: '#
|
|
3687
|
-
warningSoftColorLighten: '#
|
|
3688
|
-
infoColor: '#
|
|
3689
|
-
infoSoftColor: '#
|
|
3690
|
-
infoSoftColorDarken: '#
|
|
3691
|
-
infoSoftColorLighten: '#
|
|
3735
|
+
warningColor: '#F3BE00',
|
|
3736
|
+
warningSoftColor: '#FFF4D2',
|
|
3737
|
+
warningSoftColorDarken: '#F1E5C1',
|
|
3738
|
+
warningSoftColorLighten: '#FCFAF3',
|
|
3739
|
+
infoColor: '#2762EC',
|
|
3740
|
+
infoSoftColor: '#D3E1FF',
|
|
3741
|
+
infoSoftColorDarken: '#C2D1F1',
|
|
3742
|
+
infoSoftColorLighten: '#F4F7FD'
|
|
3692
3743
|
};
|
|
3693
3744
|
const themeDark = {
|
|
3694
3745
|
primaryColor: '#FBFCFF',
|
|
@@ -3700,7 +3751,7 @@ const themeDark = {
|
|
|
3700
3751
|
backgroundSurfaceColorDarken: '#040405',
|
|
3701
3752
|
backgroundSurfaceColorLighten: '#3E4045',
|
|
3702
3753
|
contrastLowColor: '#404044',
|
|
3703
|
-
contrastMediumColor: '#
|
|
3754
|
+
contrastMediumColor: '#88898C',
|
|
3704
3755
|
contrastHighColor: '#AFB0B3',
|
|
3705
3756
|
contrastHighColorDarken: '#909195',
|
|
3706
3757
|
contrastHighColorLighten: '#CECFD1',
|
|
@@ -3709,24 +3760,24 @@ const themeDark = {
|
|
|
3709
3760
|
activeColor: 'rgba(126, 127, 130, 0.20)',
|
|
3710
3761
|
focusColor: '#1A44EA',
|
|
3711
3762
|
disabledColor: '#7E7F82',
|
|
3712
|
-
errorColor: '#
|
|
3713
|
-
errorColorDarken: '#
|
|
3714
|
-
errorSoftColor: '#
|
|
3715
|
-
errorSoftColorDarken: '#
|
|
3716
|
-
errorSoftColorLighten: '#
|
|
3717
|
-
successColor: '#
|
|
3718
|
-
successColorDarken: '#
|
|
3763
|
+
errorColor: '#FC4040',
|
|
3764
|
+
errorColorDarken: '#FB0404',
|
|
3765
|
+
errorSoftColor: '#3A0F0F',
|
|
3766
|
+
errorSoftColorDarken: '#1A1111',
|
|
3767
|
+
errorSoftColorLighten: '#3F2828',
|
|
3768
|
+
successColor: '#09D087',
|
|
3769
|
+
successColorDarken: '#069561',
|
|
3719
3770
|
successSoftColor: '#003320',
|
|
3720
3771
|
successSoftColorDarken: '#04110C',
|
|
3721
3772
|
successSoftColorLighten: '#0F432F',
|
|
3722
|
-
warningColor: '#
|
|
3723
|
-
warningSoftColor: '#
|
|
3724
|
-
warningSoftColorDarken: '#
|
|
3725
|
-
warningSoftColorLighten: '#
|
|
3726
|
-
infoColor: '#
|
|
3727
|
-
infoSoftColor: '#
|
|
3728
|
-
infoSoftColorDarken: '#
|
|
3729
|
-
infoSoftColorLighten: '#
|
|
3773
|
+
warningColor: '#F7CB47',
|
|
3774
|
+
warningSoftColor: '#362B0A',
|
|
3775
|
+
warningSoftColorDarken: '#16130B',
|
|
3776
|
+
warningSoftColorLighten: '#3E3720',
|
|
3777
|
+
infoColor: '#178BFF',
|
|
3778
|
+
infoSoftColor: '#04294E',
|
|
3779
|
+
infoSoftColorDarken: '#0C1A27',
|
|
3780
|
+
infoSoftColorLighten: '#1A3856'
|
|
3730
3781
|
};
|
|
3731
3782
|
const themes = {
|
|
3732
3783
|
'light': themeLight,
|
|
@@ -3752,13 +3803,10 @@ const addImportantToEachRule = (input) => {
|
|
|
3752
3803
|
typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
|
|
3753
3804
|
result), {});
|
|
3754
3805
|
};
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
color: getThemedColors(theme).hoverColor,
|
|
3760
|
-
},
|
|
3761
|
-
};
|
|
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);
|
|
3762
3810
|
};
|
|
3763
3811
|
const getInsetJssStyle = (value = 0) => {
|
|
3764
3812
|
value = value === 0 || value === 'auto' ? value : `${value}px`;
|
|
@@ -3777,35 +3825,12 @@ const getResetInitialStylesForSlottedAnchor = {
|
|
|
3777
3825
|
borderRadius: 0,
|
|
3778
3826
|
background: 'transparent',
|
|
3779
3827
|
};
|
|
3780
|
-
const
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
border: 0,
|
|
3787
|
-
},
|
|
3788
|
-
[`&${pseudo}`]: Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle()), { outline: '1px solid transparent', outlineOffset: `${outlineOffset}px` }),
|
|
3789
|
-
[`&:focus${pseudo}`]: {
|
|
3790
|
-
outlineColor,
|
|
3791
|
-
},
|
|
3792
|
-
[`&:focus:not(:focus-visible)${pseudo}`]: {
|
|
3793
|
-
outlineColor: 'transparent',
|
|
3794
|
-
},
|
|
3795
|
-
}
|
|
3796
|
-
: {
|
|
3797
|
-
outline: '1px solid transparent',
|
|
3798
|
-
outlineOffset: `${outlineOffset}px`,
|
|
3799
|
-
'&::-moz-focus-inner': {
|
|
3800
|
-
border: 0,
|
|
3801
|
-
},
|
|
3802
|
-
'&:focus': {
|
|
3803
|
-
outlineColor,
|
|
3804
|
-
},
|
|
3805
|
-
'&:focus:not(:focus-visible)': {
|
|
3806
|
-
outlineColor: 'transparent',
|
|
3807
|
-
},
|
|
3808
|
-
};
|
|
3828
|
+
const focusPseudoJssStyle = {
|
|
3829
|
+
outline: 0,
|
|
3830
|
+
'&:focus::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle()), { borderRadius: '1px', outline: `${borderWidthBase} solid ${themeLightStateFocus}`, outlineOffset: '2px' }),
|
|
3831
|
+
'&:focus:not(:focus-visible)::before': {
|
|
3832
|
+
outline: 0,
|
|
3833
|
+
},
|
|
3809
3834
|
};
|
|
3810
3835
|
const getTextHiddenJssStyle = (isHidden) => isHidden
|
|
3811
3836
|
? getScreenReaderOnlyJssStyle()
|
|
@@ -3913,14 +3938,14 @@ const mergeDeep = (...objects) => {
|
|
|
3913
3938
|
}, {});
|
|
3914
3939
|
};
|
|
3915
3940
|
|
|
3916
|
-
const hasDocument = typeof document !== 'undefined';
|
|
3917
|
-
|
|
3918
|
-
hasDocument && 'scrollBehavior' in document.documentElement.style;
|
|
3919
|
-
|
|
3920
3941
|
const isThemeDark = (theme) => {
|
|
3921
3942
|
return theme === 'dark';
|
|
3922
3943
|
};
|
|
3923
3944
|
|
|
3945
|
+
const hasDocument = typeof document !== 'undefined';
|
|
3946
|
+
|
|
3947
|
+
hasDocument && 'scrollBehavior' in document.documentElement.style;
|
|
3948
|
+
|
|
3924
3949
|
const formatObjectOutput = (value) => {
|
|
3925
3950
|
return JSON.stringify(value)
|
|
3926
3951
|
.replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
|
|
@@ -3933,7 +3958,7 @@ const formatObjectOutput = (value) => {
|
|
|
3933
3958
|
|
|
3934
3959
|
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
3935
3960
|
|
|
3936
|
-
const getComponentCss$
|
|
3961
|
+
const getComponentCss$Y = (size, compact, open, theme) => {
|
|
3937
3962
|
const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
|
|
3938
3963
|
const border = `1px solid ${contrastLowColor}`;
|
|
3939
3964
|
return getCss(Object.assign(Object.assign({ '@global': {
|
|
@@ -4002,50 +4027,9 @@ const getComponentCss$T = (size, compact, open, theme) => {
|
|
|
4002
4027
|
} }));
|
|
4003
4028
|
};
|
|
4004
4029
|
|
|
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
4030
|
const easeInQuad = 'cubic-bezier(0.45,0,0.55,1)';
|
|
4044
4031
|
const easeOutQuad = 'cubic-bezier(0.5,1,0.89,1)';
|
|
4045
4032
|
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
4033
|
const getAnimationIn = (keyframesName, durationVar) => {
|
|
4050
4034
|
const duration = durationVar ? `var(${durationVar},${ANIMATION_DURATION}ms)` : `${ANIMATION_DURATION}ms`;
|
|
4051
4035
|
return {
|
|
@@ -4072,69 +4056,67 @@ const getKeyframesMobile = (direction, bottomVar) => getKeyframes(direction, {
|
|
|
4072
4056
|
transform: `translate3d(0,calc(var(${bottomVar}) + 100%),0)`, // space before and after "+" is crucial
|
|
4073
4057
|
});
|
|
4074
4058
|
|
|
4075
|
-
const
|
|
4076
|
-
const
|
|
4077
|
-
const
|
|
4078
|
-
const
|
|
4079
|
-
|
|
4080
|
-
const
|
|
4081
|
-
const
|
|
4059
|
+
const TOAST_Z_INDEX = 999999;
|
|
4060
|
+
const MODAL_Z_INDEX = 99999;
|
|
4061
|
+
const POPOVER_Z_INDEX = 9999;
|
|
4062
|
+
const BANNER_Z_INDEX = 99;
|
|
4063
|
+
|
|
4064
|
+
const cssVariableTop = '--p-banner-position-top';
|
|
4065
|
+
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4066
|
+
const cssVariableAnimationDuration = '--p-animation-duration';
|
|
4067
|
+
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4068
|
+
const mediaQueryBaseToS = getMediaQueryMinMax('base', 's');
|
|
4082
4069
|
const mediaQueryS$1 = getMediaQueryMin('s');
|
|
4070
|
+
const mediaQueryXXL$1 = getMediaQueryMin('xxl');
|
|
4083
4071
|
const getKeyframesDesktop = (direction, topVar) => getKeyframes(direction, {
|
|
4084
4072
|
opacity: 0,
|
|
4085
4073
|
transform: `translate3d(0,calc(-100% - var(${topVar})),0)`, // space before and after "-" is crucial
|
|
4086
4074
|
});
|
|
4087
|
-
const
|
|
4088
|
-
fluid: 'extended',
|
|
4089
|
-
extended: 'extended',
|
|
4090
|
-
basic: 'basic',
|
|
4091
|
-
};
|
|
4092
|
-
const getComponentCss$S = (width) => {
|
|
4075
|
+
const getComponentCss$X = () => {
|
|
4093
4076
|
return getCss({
|
|
4094
4077
|
'@global': {
|
|
4095
|
-
':host': Object.assign(Object.assign({
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
},
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
},
|
|
4104
|
-
|
|
4105
|
-
[
|
|
4106
|
-
[mediaQueryS$1]: getAnimationIn('desktopIn', bannerAnimationDurationVar),
|
|
4078
|
+
':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]: {
|
|
4079
|
+
top: `var(${cssVariableTop})`,
|
|
4080
|
+
bottom: 'auto',
|
|
4081
|
+
left: gridExtendedOffsetS,
|
|
4082
|
+
right: gridExtendedOffsetS,
|
|
4083
|
+
}, [mediaQueryXXL$1]: {
|
|
4084
|
+
left: gridExtendedOffsetXXL,
|
|
4085
|
+
right: gridExtendedOffsetXXL,
|
|
4086
|
+
} }), hostHiddenStyles))), { '&(.hydrated),&(.ssr)': {
|
|
4087
|
+
[mediaQueryBaseToS]: getAnimationIn('mobileIn', cssVariableAnimationDuration),
|
|
4088
|
+
[mediaQueryS$1]: getAnimationIn('desktopIn', cssVariableAnimationDuration),
|
|
4107
4089
|
}, '&(.banner--close)': {
|
|
4108
|
-
[
|
|
4090
|
+
[mediaQueryBaseToS]: getAnimationOut('mobileOut'),
|
|
4109
4091
|
[mediaQueryS$1]: getAnimationOut('desktopOut'),
|
|
4110
4092
|
} }),
|
|
4111
|
-
'@keyframes mobileIn': getKeyframesMobile('in',
|
|
4112
|
-
'@keyframes mobileOut': getKeyframesMobile('out',
|
|
4113
|
-
'@keyframes desktopIn': getKeyframesDesktop('in',
|
|
4114
|
-
'@keyframes desktopOut': getKeyframesDesktop('out',
|
|
4093
|
+
'@keyframes mobileIn': getKeyframesMobile('in', cssVariableBottom),
|
|
4094
|
+
'@keyframes mobileOut': getKeyframesMobile('out', cssVariableBottom),
|
|
4095
|
+
'@keyframes desktopIn': getKeyframesDesktop('in', cssVariableTop),
|
|
4096
|
+
'@keyframes desktopOut': getKeyframesDesktop('out', cssVariableTop),
|
|
4115
4097
|
},
|
|
4116
|
-
root: getBoxShadow(),
|
|
4117
4098
|
});
|
|
4118
4099
|
};
|
|
4119
4100
|
|
|
4120
|
-
const
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
},
|
|
4130
|
-
};
|
|
4131
|
-
return style[direction];
|
|
4101
|
+
const groupDirectionJssStyles = {
|
|
4102
|
+
column: {
|
|
4103
|
+
flexFlow: 'column nowrap',
|
|
4104
|
+
alignItems: 'stretch',
|
|
4105
|
+
},
|
|
4106
|
+
row: {
|
|
4107
|
+
flexFlow: 'row wrap',
|
|
4108
|
+
alignItems: 'center',
|
|
4109
|
+
},
|
|
4132
4110
|
};
|
|
4133
|
-
const
|
|
4111
|
+
const getGroupDirectionJssStyles = (direction) => {
|
|
4112
|
+
return groupDirectionJssStyles[direction];
|
|
4113
|
+
};
|
|
4114
|
+
|
|
4115
|
+
const getComponentCss$W = (direction) => {
|
|
4134
4116
|
return getCss({
|
|
4135
4117
|
'@global': {
|
|
4136
4118
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
4137
|
-
div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction,
|
|
4119
|
+
div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getGroupDirectionJssStyles)),
|
|
4138
4120
|
},
|
|
4139
4121
|
});
|
|
4140
4122
|
};
|
|
@@ -4155,7 +4137,7 @@ const getFontSizeText = (size) => {
|
|
|
4155
4137
|
// 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
4138
|
const getVisibilityJssStyle = (hideLabel) => {
|
|
4157
4139
|
return hideLabel
|
|
4158
|
-
? Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle(
|
|
4140
|
+
? Object.assign(Object.assign({ position: 'absolute' }, getInsetJssStyle()), { whiteSpace: 'nowrap', textIndent: '-999999px' }) : Object.assign(Object.assign({ position: 'relative' }, getInsetJssStyle('auto')), { whiteSpace: 'inherit', textIndent: 0 });
|
|
4159
4141
|
};
|
|
4160
4142
|
const offsetVertical = '-2px';
|
|
4161
4143
|
const offsetHorizontal = '-4px';
|
|
@@ -4197,7 +4179,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4197
4179
|
}));
|
|
4198
4180
|
};
|
|
4199
4181
|
|
|
4200
|
-
const getComponentCss$
|
|
4182
|
+
const getComponentCss$V = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
|
|
4201
4183
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4202
4184
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
|
|
4203
4185
|
appearance: 'none',
|
|
@@ -4220,6 +4202,111 @@ const getComponentCss$Q = (icon, iconSource, active, isLoading, isDisabledOrLoad
|
|
|
4220
4202
|
}))));
|
|
4221
4203
|
};
|
|
4222
4204
|
|
|
4205
|
+
const fontWeightMap = {
|
|
4206
|
+
regular: fontWeightRegular,
|
|
4207
|
+
'semi-bold': fontWeightSemiBold,
|
|
4208
|
+
bold: fontWeightBold,
|
|
4209
|
+
};
|
|
4210
|
+
const getFontWeight = (weight) => {
|
|
4211
|
+
return fontWeightMap[weight];
|
|
4212
|
+
};
|
|
4213
|
+
|
|
4214
|
+
const getThemedTypographyColor = (theme, textColor) => {
|
|
4215
|
+
// TODO: don't destructure for better minification
|
|
4216
|
+
const { primaryColor, contrastHighColor, contrastMediumColor, contrastLowColor, successColor, errorColor, warningColor, infoColor, } = getThemedColors(theme);
|
|
4217
|
+
const colorMap = {
|
|
4218
|
+
primary: primaryColor,
|
|
4219
|
+
default: primaryColor,
|
|
4220
|
+
'contrast-low': contrastLowColor,
|
|
4221
|
+
'contrast-medium': contrastMediumColor,
|
|
4222
|
+
'contrast-high': contrastHighColor,
|
|
4223
|
+
'notification-success': successColor,
|
|
4224
|
+
'notification-warning': warningColor,
|
|
4225
|
+
'notification-error': errorColor,
|
|
4226
|
+
'notification-info': infoColor,
|
|
4227
|
+
inherit: 'currentColor',
|
|
4228
|
+
};
|
|
4229
|
+
return colorMap[textColor];
|
|
4230
|
+
};
|
|
4231
|
+
|
|
4232
|
+
const aspectRatioPaddingMap = {
|
|
4233
|
+
'1:1': '100%',
|
|
4234
|
+
'4:3': '75%',
|
|
4235
|
+
'3:4': '133.33%',
|
|
4236
|
+
'16:9': '56.25%',
|
|
4237
|
+
'9:16': '177.75%',
|
|
4238
|
+
};
|
|
4239
|
+
const getTileBaseStyles = (aspectRatio, isDisabled) => {
|
|
4240
|
+
return {
|
|
4241
|
+
'@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)) }, addImportantToEachRule({
|
|
4242
|
+
'::slotted': {
|
|
4243
|
+
'&(picture)': Object.assign({ position: 'absolute' }, getInsetJssStyle()),
|
|
4244
|
+
'&(img)': {
|
|
4245
|
+
height: '100%',
|
|
4246
|
+
width: '100%',
|
|
4247
|
+
objectFit: 'cover',
|
|
4248
|
+
},
|
|
4249
|
+
},
|
|
4250
|
+
})),
|
|
4251
|
+
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) => ({
|
|
4252
|
+
paddingTop: aspectRatioPaddingMap[ratio],
|
|
4253
|
+
}))), (!isDisabled &&
|
|
4254
|
+
hoverMediaQuery({
|
|
4255
|
+
'&:hover .image-container': {
|
|
4256
|
+
transform: 'scale3d(1.05,1.05,1.05)',
|
|
4257
|
+
},
|
|
4258
|
+
}))),
|
|
4259
|
+
'image-container': Object.assign({ position: 'absolute', transition: getTransition('transform') }, getInsetJssStyle()),
|
|
4260
|
+
content: {
|
|
4261
|
+
position: 'absolute',
|
|
4262
|
+
left: 0,
|
|
4263
|
+
right: 0,
|
|
4264
|
+
display: 'flex',
|
|
4265
|
+
justifyItems: 'start',
|
|
4266
|
+
gap: spacingStaticMedium,
|
|
4267
|
+
borderRadius: borderRadiusMedium,
|
|
4268
|
+
'@media (forced-colors: active)': {
|
|
4269
|
+
background: 'rgba(0,0,0,0.7)',
|
|
4270
|
+
},
|
|
4271
|
+
},
|
|
4272
|
+
};
|
|
4273
|
+
};
|
|
4274
|
+
|
|
4275
|
+
const sizeMap$5 = {
|
|
4276
|
+
inherit: { fontSize: 'inherit' },
|
|
4277
|
+
default: { fontSize: fontSizeTextMedium },
|
|
4278
|
+
};
|
|
4279
|
+
const getButtonLinkTileStyles = (aspectRatio, size, weight, // to get deprecated semibold typed
|
|
4280
|
+
align, compact, hasGradient, isDisabled) => {
|
|
4281
|
+
const isTopAligned = align === 'top';
|
|
4282
|
+
return Object.assign({}, mergeDeep(getTileBaseStyles(aspectRatio, isDisabled), {
|
|
4283
|
+
'@global': {
|
|
4284
|
+
p: Object.assign(Object.assign({ maxWidth: pxToRemWithUnit(550), margin: 0 }, textLargeStyle), mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$5[s]), buildResponsiveStyles(weight, (w) => ({
|
|
4285
|
+
fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w), // mapping of the deprecated weight semibold
|
|
4286
|
+
})))),
|
|
4287
|
+
},
|
|
4288
|
+
content: Object.assign(Object.assign(Object.assign({ display: 'grid' }, (isTopAligned ? { top: 0 } : { bottom: 0 })), { padding: isTopAligned
|
|
4289
|
+
? `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`
|
|
4290
|
+
: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}` }), mergeDeep(hasGradient &&
|
|
4291
|
+
buildResponsiveStyles(compact, (isCompact) => isCompact && isTopAligned ? gradientToBottomStyle : gradientToTopStyle), buildResponsiveStyles(compact, (isCompact) => isCompact // TODO: use flex
|
|
4292
|
+
? Object.assign({ alignItems: 'center', gridTemplateColumns: 'auto 24px', gridTemplateRows: 'auto' }, (isTopAligned ? { top: 0 } : { bottom: 0 })) : {
|
|
4293
|
+
gridTemplateRows: 'auto auto',
|
|
4294
|
+
gridTemplateColumns: 'auto',
|
|
4295
|
+
}))),
|
|
4296
|
+
'link-or-button-pure': buildResponsiveStyles(compact, (isCompact) => ({
|
|
4297
|
+
display: isCompact ? 'inline-block' : 'none',
|
|
4298
|
+
})),
|
|
4299
|
+
'link-or-button': Object.assign({ minHeight: '54px' }, buildResponsiveStyles(compact, (isCompact) => ({
|
|
4300
|
+
display: isCompact ? 'none' : 'inline-block',
|
|
4301
|
+
}))),
|
|
4302
|
+
}));
|
|
4303
|
+
};
|
|
4304
|
+
|
|
4305
|
+
const getComponentCss$U = (isDisabledOrLoading, ...args) => {
|
|
4306
|
+
const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
|
|
4307
|
+
return getCss(Object.assign(Object.assign({}, buttonLinkTileStyles), { root: Object.assign(Object.assign({}, buttonLinkTileStyles.root), { cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer' }) }));
|
|
4308
|
+
};
|
|
4309
|
+
|
|
4223
4310
|
const { primaryColor: darkThemePrimaryColor$1 } = getThemedColors('dark');
|
|
4224
4311
|
const { primaryColor: lightThemePrimaryColor$1 } = getThemedColors('light');
|
|
4225
4312
|
const getVariantColors = (variant, theme) => {
|
|
@@ -4295,7 +4382,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4295
4382
|
};
|
|
4296
4383
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4297
4384
|
};
|
|
4298
|
-
const getComponentCss$
|
|
4385
|
+
const getComponentCss$T = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
|
|
4299
4386
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4300
4387
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4301
4388
|
const isPrimary = variant === 'primary';
|
|
@@ -4330,33 +4417,15 @@ const mediaQueryXXL = getMediaQueryMin('xxl');
|
|
|
4330
4417
|
const buttonSize$1 = `calc(${spacingStaticSmall} * 2 + ${fontLineHeight})`;
|
|
4331
4418
|
// + 2px, compensates hover offset of button-pure
|
|
4332
4419
|
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
4420
|
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
|
-
},
|
|
4421
|
+
basic: gridBasicOffset,
|
|
4422
|
+
extended: gridExtendedOffset,
|
|
4352
4423
|
};
|
|
4353
|
-
const getComponentCss$
|
|
4424
|
+
const getComponentCss$S = (width, hasPagination, alignHeader, theme) => {
|
|
4354
4425
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
4355
4426
|
const isHeaderAlignCenter = alignHeader === 'center';
|
|
4356
4427
|
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)),
|
|
4428
|
+
':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', boxSizing: 'content-box' }, hostHiddenStyles)),
|
|
4360
4429
|
[selectorHeading]: addImportantToEachRule(Object.assign(Object.assign({}, headingXLargeStyle), { maxWidth: '56.25rem', margin: 0 })),
|
|
4361
4430
|
[selectorDescription]: addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { maxWidth: '34.375rem', margin: `${spacingFluidXSmall} 0 0` })),
|
|
4362
4431
|
[`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
|
|
@@ -4370,11 +4439,16 @@ const getComponentCss$O = (width, hasPagination, alignHeader, theme) => {
|
|
|
4370
4439
|
gridColumn: '1 / 3',
|
|
4371
4440
|
},
|
|
4372
4441
|
}),
|
|
4373
|
-
}, header:
|
|
4374
|
-
|
|
4442
|
+
}, header: {
|
|
4443
|
+
display: 'grid',
|
|
4444
|
+
padding: `0 ${spacingMap[width].base}`,
|
|
4445
|
+
[mediaQueryS]: Object.assign(Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
|
|
4375
4446
|
justifyItems: 'center', // relevant when max-width of heading or description is reached
|
|
4376
|
-
})),
|
|
4377
|
-
|
|
4447
|
+
})), { padding: `0 ${spacingMap[width].s}` }),
|
|
4448
|
+
[mediaQueryXXL]: {
|
|
4449
|
+
padding: `0 ${spacingMap[width].xxl}`,
|
|
4450
|
+
},
|
|
4451
|
+
}, nav: {
|
|
4378
4452
|
display: 'none',
|
|
4379
4453
|
[mediaQueryS]: {
|
|
4380
4454
|
display: 'flex',
|
|
@@ -4387,9 +4461,18 @@ const getComponentCss$O = (width, hasPagination, alignHeader, theme) => {
|
|
|
4387
4461
|
}, splide: {
|
|
4388
4462
|
overflow: 'hidden',
|
|
4389
4463
|
// visibility: 'hidden',
|
|
4390
|
-
'&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule(
|
|
4391
|
-
|
|
4392
|
-
|
|
4464
|
+
'&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule({
|
|
4465
|
+
padding: `0 ${spacingMap[width].base}`,
|
|
4466
|
+
[getMediaQueryMax('xs')]: {
|
|
4467
|
+
paddingRight: `calc(${gridBasicOffsetBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
|
|
4468
|
+
},
|
|
4469
|
+
[mediaQueryS]: {
|
|
4470
|
+
padding: `0 ${spacingMap[width].s}`,
|
|
4471
|
+
},
|
|
4472
|
+
[mediaQueryXXL]: {
|
|
4473
|
+
padding: `0 ${spacingMap[width].xxl}`,
|
|
4474
|
+
},
|
|
4475
|
+
})), { '&--draggable': {
|
|
4393
4476
|
userSelect: 'none',
|
|
4394
4477
|
WebkitUserSelect: 'none',
|
|
4395
4478
|
WebkitTouchCallout: 'none',
|
|
@@ -4492,7 +4575,7 @@ const getInlineSVGBackgroundImage = (path) => {
|
|
|
4492
4575
|
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
4576
|
};
|
|
4494
4577
|
|
|
4495
|
-
const getComponentCss$
|
|
4578
|
+
const getComponentCss$R = (hideLabel, state, isDisabled, theme) => {
|
|
4496
4579
|
const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
|
|
4497
4580
|
const indeterminateIconColor = getThemedColors(theme).primaryColor.replace(/#/g, '%23');
|
|
4498
4581
|
return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
|
|
@@ -4512,34 +4595,53 @@ const getComponentCss$N = (hideLabel, state, isDisabled, theme) => {
|
|
|
4512
4595
|
}));
|
|
4513
4596
|
};
|
|
4514
4597
|
|
|
4515
|
-
const
|
|
4598
|
+
const widthMap = {
|
|
4599
|
+
narrow: gridNarrowOffset,
|
|
4600
|
+
basic: gridBasicOffset,
|
|
4601
|
+
extended: gridExtendedOffset,
|
|
4602
|
+
};
|
|
4603
|
+
const getComponentCss$Q = (width) => {
|
|
4516
4604
|
return getCss({
|
|
4517
4605
|
'@global': {
|
|
4518
4606
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
4519
4607
|
},
|
|
4520
|
-
root:
|
|
4608
|
+
root: Object.assign({ minWidth: 0 }, (['full', 'fluid'].includes(width)
|
|
4609
|
+
? {
|
|
4610
|
+
padding: `0 ${gridFullOffset}`,
|
|
4611
|
+
}
|
|
4612
|
+
: {
|
|
4613
|
+
padding: `0 ${widthMap[width].base}`,
|
|
4614
|
+
[getMediaQueryMin('s')]: {
|
|
4615
|
+
padding: `0 ${widthMap[width].s}`,
|
|
4616
|
+
},
|
|
4617
|
+
[getMediaQueryMin('xxl')]: {
|
|
4618
|
+
padding: `0 ${widthMap[width].xxl}`,
|
|
4619
|
+
},
|
|
4620
|
+
})),
|
|
4521
4621
|
});
|
|
4522
4622
|
};
|
|
4523
4623
|
|
|
4524
|
-
const
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4624
|
+
const getComponentCss$P = () => {
|
|
4625
|
+
return getCss({
|
|
4626
|
+
'@global': {
|
|
4627
|
+
':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign({ outline: 0 }, hostHiddenStyles))),
|
|
4628
|
+
a: Object.assign({ display: 'block', textDecoration: 'none' }, focusPseudoJssStyle),
|
|
4629
|
+
picture: {
|
|
4630
|
+
display: 'block',
|
|
4631
|
+
width: '30px',
|
|
4632
|
+
height: '40px',
|
|
4633
|
+
},
|
|
4634
|
+
img: {
|
|
4635
|
+
display: 'block',
|
|
4636
|
+
width: '100%',
|
|
4637
|
+
height: 'auto',
|
|
4638
|
+
},
|
|
4639
|
+
},
|
|
4640
|
+
});
|
|
4541
4641
|
};
|
|
4542
4642
|
|
|
4643
|
+
const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
4644
|
+
|
|
4543
4645
|
const getTypographyRootJssStyle = (baseTextStyle, responsiveStyle, align, color, ellipsis, theme) => {
|
|
4544
4646
|
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
4647
|
maxWidth: '100%',
|
|
@@ -4568,12 +4670,12 @@ const getTypographySlottedJssStyle = () => {
|
|
|
4568
4670
|
};
|
|
4569
4671
|
};
|
|
4570
4672
|
|
|
4571
|
-
const sizeMap$
|
|
4673
|
+
const sizeMap$4 = {
|
|
4572
4674
|
small: fontSizeDisplaySmall,
|
|
4573
4675
|
medium: fontSizeDisplayMedium,
|
|
4574
4676
|
large: fontSizeDisplayLarge,
|
|
4575
4677
|
};
|
|
4576
|
-
const getComponentCss$
|
|
4678
|
+
const getComponentCss$O = (size, align, color, ellipsis, theme) => {
|
|
4577
4679
|
return getCss({
|
|
4578
4680
|
'@global': {
|
|
4579
4681
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -4582,12 +4684,12 @@ const getComponentCss$L = (size, align, color, ellipsis, theme) => {
|
|
|
4582
4684
|
},
|
|
4583
4685
|
},
|
|
4584
4686
|
root: getTypographyRootJssStyle(displayLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
|
|
4585
|
-
fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$
|
|
4687
|
+
fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$4[sizeValue],
|
|
4586
4688
|
})), align, color, ellipsis, theme),
|
|
4587
4689
|
});
|
|
4588
4690
|
};
|
|
4589
4691
|
|
|
4590
|
-
const getComponentCss$
|
|
4692
|
+
const getComponentCss$N = (color, orientation, theme) => {
|
|
4591
4693
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
4592
4694
|
const colorMap = {
|
|
4593
4695
|
'contrast-low': contrastLowColor,
|
|
@@ -4602,7 +4704,21 @@ const getComponentCss$K = (color, orientation, theme) => {
|
|
|
4602
4704
|
});
|
|
4603
4705
|
};
|
|
4604
4706
|
|
|
4605
|
-
const getComponentCss$
|
|
4707
|
+
const getComponentCss$M = (state, labelSize, hasLabel, theme) => {
|
|
4708
|
+
return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
|
|
4709
|
+
margin: 0,
|
|
4710
|
+
padding: 0,
|
|
4711
|
+
border: 'none',
|
|
4712
|
+
} }, (hasLabel && {
|
|
4713
|
+
legend: Object.assign({ margin: `0 0 ${spacingStaticMedium}`, padding: 0, color: getThemedColors(theme).primaryColor }, (labelSize === 'small' ? headingSmallStyle : headingMediumStyle)),
|
|
4714
|
+
})) }, getFunctionalComponentRequiredStyles()), mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
|
|
4715
|
+
message: {
|
|
4716
|
+
marginTop: spacingStaticMedium,
|
|
4717
|
+
},
|
|
4718
|
+
})));
|
|
4719
|
+
};
|
|
4720
|
+
|
|
4721
|
+
const getComponentCss$L = (state, labelSize, hasLabel, theme) => {
|
|
4606
4722
|
return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
|
|
4607
4723
|
margin: 0,
|
|
4608
4724
|
padding: 0,
|
|
@@ -4626,7 +4742,7 @@ const flexItemWidths = {
|
|
|
4626
4742
|
full: 100,
|
|
4627
4743
|
auto: 'auto',
|
|
4628
4744
|
};
|
|
4629
|
-
const getComponentCss$
|
|
4745
|
+
const getComponentCss$K = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
4630
4746
|
return getCss({
|
|
4631
4747
|
'@global': {
|
|
4632
4748
|
':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
|
|
@@ -4644,7 +4760,7 @@ const getComponentCss$I = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
4644
4760
|
});
|
|
4645
4761
|
};
|
|
4646
4762
|
|
|
4647
|
-
const getComponentCss$
|
|
4763
|
+
const getComponentCss$J = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
4648
4764
|
return getCss({
|
|
4649
4765
|
'@global': {
|
|
4650
4766
|
':host': addImportantToEachRule(mergeDeep(hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
|
|
@@ -4666,7 +4782,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
4666
4782
|
const gridItemWidths = [
|
|
4667
4783
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
4668
4784
|
];
|
|
4669
|
-
const getComponentCss$
|
|
4785
|
+
const getComponentCss$I = (size, offset) => {
|
|
4670
4786
|
return getCss({
|
|
4671
4787
|
'@global': {
|
|
4672
4788
|
':host': addImportantToEachRule(Object.assign(Object.assign({ paddingLeft: gutter$1, paddingRight: gutter$1, boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
|
|
@@ -4680,7 +4796,7 @@ const getComponentCss$G = (size, offset) => {
|
|
|
4680
4796
|
};
|
|
4681
4797
|
|
|
4682
4798
|
const gutter = `calc(${gridGap} / -2)`;
|
|
4683
|
-
const getComponentCss$
|
|
4799
|
+
const getComponentCss$H = (direction, wrap) => {
|
|
4684
4800
|
return getCss({
|
|
4685
4801
|
'@global': {
|
|
4686
4802
|
':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 +4804,14 @@ const getComponentCss$F = (direction, wrap) => {
|
|
|
4688
4804
|
});
|
|
4689
4805
|
};
|
|
4690
4806
|
|
|
4691
|
-
const sizeMap$
|
|
4807
|
+
const sizeMap$3 = {
|
|
4692
4808
|
small: fontSizeHeadingSmall,
|
|
4693
4809
|
medium: fontSizeHeadingMedium,
|
|
4694
4810
|
large: fontSizeHeadingLarge,
|
|
4695
4811
|
'x-large': fontSizeHeadingXLarge,
|
|
4696
4812
|
'xx-large': fontSizeHeadingXXLarge,
|
|
4697
4813
|
};
|
|
4698
|
-
const getComponentCss$
|
|
4814
|
+
const getComponentCss$G = (size, align, color, ellipsis, theme) => {
|
|
4699
4815
|
return getCss({
|
|
4700
4816
|
'@global': {
|
|
4701
4817
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -4704,7 +4820,7 @@ const getComponentCss$E = (size, align, color, ellipsis, theme) => {
|
|
|
4704
4820
|
},
|
|
4705
4821
|
},
|
|
4706
4822
|
root: getTypographyRootJssStyle(headingXXLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
|
|
4707
|
-
fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$
|
|
4823
|
+
fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$3[sizeValue],
|
|
4708
4824
|
})), align, color, ellipsis, theme),
|
|
4709
4825
|
});
|
|
4710
4826
|
};
|
|
@@ -4749,7 +4865,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
4749
4865
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
4750
4866
|
};
|
|
4751
4867
|
};
|
|
4752
|
-
const getComponentCss$
|
|
4868
|
+
const getComponentCss$F = (variant, align, color, ellipsis, theme) => {
|
|
4753
4869
|
return getCss({
|
|
4754
4870
|
'@global': {
|
|
4755
4871
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -4766,25 +4882,25 @@ const getComponentCss$D = (variant, align, color, ellipsis, theme) => {
|
|
|
4766
4882
|
const toFilter = (values) => `invert(${values[0]}%) sepia(${values[1]}%) saturate(${values[2]}%) hue-rotate(${values[3]}deg) brightness(${values[4]}%) contrast(${values[5]}%)`;
|
|
4767
4883
|
|
|
4768
4884
|
const filterLightContrastLow = toFilter([93, 11, 36, 201, 89, 102]);
|
|
4769
|
-
const filterLightContrastMedium = toFilter([
|
|
4885
|
+
const filterLightContrastMedium = toFilter([45, 6, 235, 177, 91, 85]);
|
|
4770
4886
|
const filterLightContrastHigh = toFilter([40, 2, 686, 187, 80, 94]);
|
|
4771
4887
|
const filterDarkContrastLow = toFilter([20, 7, 421, 202, 97, 82]);
|
|
4772
|
-
const filterDarkContrastMedium = toFilter([
|
|
4888
|
+
const filterDarkContrastMedium = toFilter([66, 3, 333, 187, 82, 86]);
|
|
4773
4889
|
const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
|
|
4774
4890
|
|
|
4775
|
-
const filterLightNotificationSuccess = toFilter([
|
|
4776
|
-
const filterLightNotificationWarning = toFilter([
|
|
4777
|
-
const filterLightNotificationError = toFilter([
|
|
4778
|
-
const filterLightNotificationInfo = toFilter([
|
|
4779
|
-
const filterDarkNotificationSuccess = toFilter([
|
|
4780
|
-
const filterDarkNotificationWarning = toFilter([
|
|
4781
|
-
const filterDarkNotificationError = toFilter([
|
|
4782
|
-
const filterDarkNotificationInfo = toFilter([
|
|
4891
|
+
const filterLightNotificationSuccess = toFilter([28, 89, 572, 71, 111, 98]);
|
|
4892
|
+
const filterLightNotificationWarning = toFilter([58, 53, 820, 12, 112, 103]);
|
|
4893
|
+
const filterLightNotificationError = toFilter([14, 75, 4140, 347, 100, 97]);
|
|
4894
|
+
const filterLightNotificationInfo = toFilter([44, 100, 492, 195, 86, 221]);
|
|
4895
|
+
const filterDarkNotificationSuccess = toFilter([60, 71, 512, 106, 91, 97]);
|
|
4896
|
+
const filterDarkNotificationWarning = toFilter([75, 39, 759, 350, 109, 94]);
|
|
4897
|
+
const filterDarkNotificationError = toFilter([64, 91, 5857, 336, 98, 102]);
|
|
4898
|
+
const filterDarkNotificationInfo = toFilter([56, 77, 4175, 198, 104, 98]);
|
|
4783
4899
|
|
|
4784
4900
|
const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
|
|
4785
|
-
const filterDarkPrimary = toFilter([
|
|
4901
|
+
const filterDarkPrimary = toFilter([100, 91, 38, 254, 110, 110]);
|
|
4786
4902
|
|
|
4787
|
-
const sizeMap$
|
|
4903
|
+
const sizeMap$2 = {
|
|
4788
4904
|
'xx-small': fontSizeTextXXSmall,
|
|
4789
4905
|
'x-small': fontSizeTextXSmall,
|
|
4790
4906
|
small: fontSizeTextSmall,
|
|
@@ -4826,7 +4942,7 @@ const forceRerenderAnimationStyle = {
|
|
|
4826
4942
|
};
|
|
4827
4943
|
const keyFramesLight = 'rerender-light';
|
|
4828
4944
|
const keyFramesDark = 'rerender-dark';
|
|
4829
|
-
const getComponentCss$
|
|
4945
|
+
const getComponentCss$E = (color, size, theme) => {
|
|
4830
4946
|
const isColorInherit = color === 'inherit';
|
|
4831
4947
|
const isSizeInherit = size === 'inherit';
|
|
4832
4948
|
const isDark = isThemeDark(theme);
|
|
@@ -4842,7 +4958,7 @@ const getComponentCss$C = (color, size, theme) => {
|
|
|
4842
4958
|
: {
|
|
4843
4959
|
width: fontLineHeight,
|
|
4844
4960
|
height: fontLineHeight,
|
|
4845
|
-
font: `${sizeMap$
|
|
4961
|
+
font: `${sizeMap$2[size]} ${fontFamily}`,
|
|
4846
4962
|
})) }, (!isColorInherit && {
|
|
4847
4963
|
[`@keyframes ${isDark ? keyFramesDark : keyFramesLight}`]: forceRerenderAnimationStyle,
|
|
4848
4964
|
})),
|
|
@@ -4893,7 +5009,7 @@ const getNotificationContentJssStyle = () => ({
|
|
|
4893
5009
|
});
|
|
4894
5010
|
|
|
4895
5011
|
const mediaQueryMaxS = getMediaQueryMax('s');
|
|
4896
|
-
const getComponentCss$
|
|
5012
|
+
const getComponentCss$D = (state, hasAction, hasClose, theme) => {
|
|
4897
5013
|
return getCss(Object.assign({ '@global': {
|
|
4898
5014
|
':host': addImportantToEachRule(Object.assign(Object.assign({}, getNotificationRootJssStyle(state, hasAction, hasClose, theme)), hostHiddenStyles)),
|
|
4899
5015
|
h5: headingSmallStyle,
|
|
@@ -4911,7 +5027,7 @@ const getComponentCss$B = (state, hasAction, hasClose, theme) => {
|
|
|
4911
5027
|
})));
|
|
4912
5028
|
};
|
|
4913
5029
|
|
|
4914
|
-
const getComponentCss$
|
|
5030
|
+
const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
4915
5031
|
const { focusColor } = getThemedColors(theme);
|
|
4916
5032
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4917
5033
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
|
|
@@ -4938,7 +5054,7 @@ const getComponentCss$A = (icon, iconSource, active, stretch, size, hideLabel, a
|
|
|
4938
5054
|
} })));
|
|
4939
5055
|
};
|
|
4940
5056
|
|
|
4941
|
-
const getComponentCss$
|
|
5057
|
+
const getComponentCss$B = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
|
|
4942
5058
|
const { focusColor } = getThemedColors(theme);
|
|
4943
5059
|
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && {
|
|
4944
5060
|
'@global': addImportantToEachRule({
|
|
@@ -4963,67 +5079,27 @@ const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
4963
5079
|
}))));
|
|
4964
5080
|
};
|
|
4965
5081
|
|
|
4966
|
-
const
|
|
4967
|
-
regular: fontWeightRegular,
|
|
4968
|
-
'semi-bold': fontWeightSemiBold$1,
|
|
4969
|
-
bold: fontWeightBold,
|
|
4970
|
-
};
|
|
4971
|
-
const getFontWeight = (weight) => {
|
|
4972
|
-
return fontWeightMap[weight];
|
|
4973
|
-
};
|
|
5082
|
+
const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
|
|
4974
5083
|
|
|
4975
|
-
const
|
|
4976
|
-
|
|
4977
|
-
'
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
}
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
5084
|
+
const getComponentCss$A = (aspectRatio, weight, direction, hasDescription) => {
|
|
5085
|
+
const tileBaseStyles = getTileBaseStyles(aspectRatio);
|
|
5086
|
+
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(',')]: {
|
|
5087
|
+
margin: addImportantToRule(0),
|
|
5088
|
+
} }), content: Object.assign(Object.assign(Object.assign({}, tileBaseStyles.content), { flexDirection: 'column', bottom: 0, padding: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}` }), gradientToTopStyle), model: {
|
|
5089
|
+
position: 'absolute',
|
|
5090
|
+
top: spacingFluidMedium,
|
|
5091
|
+
left: spacingFluidMedium,
|
|
5092
|
+
}, heading: Object.assign(Object.assign({ margin: 0 }, textLargeStyle), buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) }))) }), (hasDescription && {
|
|
5093
|
+
description: Object.assign({ margin: '-12px 0 0 ' }, textSmallStyle),
|
|
5094
|
+
})), { 'link-group': Object.assign({ display: 'flex', width: '100%', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getGroupDirectionJssStyles)), 'link-overlay': Object.assign({
|
|
5095
|
+
// covers entire tile, used for expanded click-area only
|
|
5096
|
+
position: 'fixed' }, getInsetJssStyle()) }));
|
|
4988
5097
|
};
|
|
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
|
-
});
|
|
5098
|
+
|
|
5099
|
+
const getComponentCss$z = (...args) => {
|
|
5100
|
+
return getCss(Object.assign(Object.assign({}, getButtonLinkTileStyles(...args)), { 'link-overlay': Object.assign({
|
|
5101
|
+
// covers entire tile, used for expanded click-area only
|
|
5102
|
+
position: 'fixed' }, getInsetJssStyle()) }));
|
|
5027
5103
|
};
|
|
5028
5104
|
|
|
5029
5105
|
const baseSizes = {
|
|
@@ -5036,15 +5112,11 @@ const baseSizes = {
|
|
|
5036
5112
|
height: '72px',
|
|
5037
5113
|
},
|
|
5038
5114
|
};
|
|
5039
|
-
const getComponentCss$
|
|
5115
|
+
const getComponentCss$y = (size) => {
|
|
5040
5116
|
return getCss({
|
|
5041
5117
|
'@global': {
|
|
5042
5118
|
':host': Object.assign({ position: 'relative', display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(Object.assign({ outline: 0 }, hostHiddenStyles))),
|
|
5043
|
-
a: Object.assign({ display: 'block', textDecoration: 'none' },
|
|
5044
|
-
color: getThemedColors('light').primaryColor,
|
|
5045
|
-
offset: 0,
|
|
5046
|
-
pseudo: '::before',
|
|
5047
|
-
})),
|
|
5119
|
+
a: Object.assign({ display: 'block', textDecoration: 'none' }, focusPseudoJssStyle),
|
|
5048
5120
|
picture: Object.assign({ display: 'block' }, (size === 'responsive'
|
|
5049
5121
|
? Object.assign(Object.assign({}, baseSizes.small), { [getMediaQueryMin('l')]: baseSizes.medium }) : baseSizes[size])),
|
|
5050
5122
|
img: {
|
|
@@ -5071,10 +5143,10 @@ const getFullscreenJssStyles = (fullscreen) => {
|
|
|
5071
5143
|
borderRadius: 0,
|
|
5072
5144
|
}
|
|
5073
5145
|
: {
|
|
5074
|
-
minWidth:
|
|
5075
|
-
maxWidth:
|
|
5146
|
+
minWidth: '276px',
|
|
5147
|
+
maxWidth: '1535.5px',
|
|
5076
5148
|
minHeight: 'auto',
|
|
5077
|
-
margin: `clamp(16px, 7vh, 192px) ${
|
|
5149
|
+
margin: `clamp(16px, 7vh, 192px) ${gridExtendedOffsetBase}`,
|
|
5078
5150
|
borderRadius: borderRadiusMedium,
|
|
5079
5151
|
};
|
|
5080
5152
|
};
|
|
@@ -5104,7 +5176,7 @@ const getSlottedJssStyle = (marginValue, hasHeader, hasDismissButton) => {
|
|
|
5104
5176
|
marginBottom: marginPx,
|
|
5105
5177
|
} });
|
|
5106
5178
|
};
|
|
5107
|
-
const getComponentCss$
|
|
5179
|
+
const getComponentCss$x = (open, fullscreen, hasDismissButton, hasHeader) => {
|
|
5108
5180
|
const isFullscreenForXlAndXxl = isFullscreenForXl(fullscreen);
|
|
5109
5181
|
return getCss(Object.assign(Object.assign({ '@global': {
|
|
5110
5182
|
':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ position: 'fixed' }, getInsetJssStyle()), { zIndex: MODAL_Z_INDEX, display: 'flex', alignItems: 'center', justifyContent: 'center', flexWrap: 'wrap' }), (open
|
|
@@ -5142,7 +5214,7 @@ const getComponentCss$w = (open, fullscreen, hasDismissButton, hasHeader) => {
|
|
|
5142
5214
|
border: 0,
|
|
5143
5215
|
},
|
|
5144
5216
|
[mediaQueryXl]: {
|
|
5145
|
-
margin: isFullscreenForXlAndXxl ? 0 : `min(192px, 10vh) ${
|
|
5217
|
+
margin: isFullscreenForXlAndXxl ? 0 : `min(192px, 10vh) ${gridExtendedOffsetBase}`,
|
|
5146
5218
|
},
|
|
5147
5219
|
}, buildResponsiveStyles(fullscreen, getFullscreenJssStyles)) }, (hasHeader && {
|
|
5148
5220
|
header: {
|
|
@@ -5172,7 +5244,7 @@ const colorToFilterMap = {
|
|
|
5172
5244
|
'contrast-high': filterDarkContrastHigh,
|
|
5173
5245
|
},
|
|
5174
5246
|
};
|
|
5175
|
-
const getComponentCss$
|
|
5247
|
+
const getComponentCss$w = (size, color, theme) => {
|
|
5176
5248
|
const isSizeInherit = size === 'inherit';
|
|
5177
5249
|
const isColorInherit = color === 'inherit';
|
|
5178
5250
|
return getCss({
|
|
@@ -5191,7 +5263,7 @@ const disabledCursorStyle = {
|
|
|
5191
5263
|
cursor: 'default',
|
|
5192
5264
|
pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
|
|
5193
5265
|
};
|
|
5194
|
-
const getComponentCss$
|
|
5266
|
+
const getComponentCss$v = (maxNumberOfPageLinks, theme) => {
|
|
5195
5267
|
const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
|
|
5196
5268
|
return getCss({
|
|
5197
5269
|
'@global': {
|
|
@@ -5308,7 +5380,7 @@ const directionArrowMap = {
|
|
|
5308
5380
|
},
|
|
5309
5381
|
},
|
|
5310
5382
|
};
|
|
5311
|
-
const getComponentCss$
|
|
5383
|
+
const getComponentCss$u = (direction, theme) => {
|
|
5312
5384
|
const spacerBox = '-16px';
|
|
5313
5385
|
const { hoverColor, focusColor } = getThemedColors(theme);
|
|
5314
5386
|
return getCss({
|
|
@@ -5357,7 +5429,7 @@ const getComponentCss$t = (direction, theme) => {
|
|
|
5357
5429
|
});
|
|
5358
5430
|
};
|
|
5359
5431
|
|
|
5360
|
-
const getComponentCss$
|
|
5432
|
+
const getComponentCss$t = (hideLabel, state, isDisabled, theme) => {
|
|
5361
5433
|
const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
|
|
5362
5434
|
return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
|
|
5363
5435
|
'@global': {
|
|
@@ -5391,7 +5463,7 @@ const getGradient = (theme, gradientColorTheme) => {
|
|
|
5391
5463
|
`rgba(${gradientColor},0.3) 68%,` +
|
|
5392
5464
|
`rgba(${gradientColor},0)`);
|
|
5393
5465
|
};
|
|
5394
|
-
const getComponentCss$
|
|
5466
|
+
const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, hasScrollbar, theme) => {
|
|
5395
5467
|
const { backgroundColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
|
|
5396
5468
|
const isDarkTheme = isThemeDark(theme);
|
|
5397
5469
|
const backgroundColorMap = {
|
|
@@ -5425,16 +5497,14 @@ const getComponentCss$r = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
|
|
|
5425
5497
|
margin: '0 -4px',
|
|
5426
5498
|
height: 'inherit',
|
|
5427
5499
|
},
|
|
5428
|
-
'scroll-area': {
|
|
5429
|
-
|
|
5430
|
-
padding: '4px',
|
|
5431
|
-
overflow: 'scroll hidden',
|
|
5500
|
+
'scroll-area': Object.assign({ gridArea: '1 / 1 / 1 / -1', padding: '4px', overflow: 'auto hidden' }, (!hasScrollbar && {
|
|
5501
|
+
// If scrollbar is disabled - hide scrollbar
|
|
5432
5502
|
msOverflowStyle: 'none' /* IE and Edge */,
|
|
5433
5503
|
scrollbarWidth: 'none' /* Firefox */,
|
|
5434
5504
|
'&::-webkit-scrollbar': {
|
|
5435
5505
|
display: 'none',
|
|
5436
5506
|
},
|
|
5437
|
-
},
|
|
5507
|
+
})),
|
|
5438
5508
|
// Extra wrapper needed to compensate different offset parent calculation depending on browser.
|
|
5439
5509
|
// Needed for position of status bar.
|
|
5440
5510
|
'scroll-wrapper': {
|
|
@@ -5486,7 +5556,7 @@ const getColors$2 = (isDisabled, isSelected, theme) => {
|
|
|
5486
5556
|
hoverBorderColor: primaryColor,
|
|
5487
5557
|
};
|
|
5488
5558
|
};
|
|
5489
|
-
const getComponentCss$
|
|
5559
|
+
const getComponentCss$r = (isDisabled, isSelected, hasIcon, theme) => {
|
|
5490
5560
|
const { focusColor } = getThemedColors(theme);
|
|
5491
5561
|
const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$2(isDisabled, isSelected, theme);
|
|
5492
5562
|
return getCss({
|
|
@@ -5520,7 +5590,7 @@ const getComponentCss$q = (isDisabled, isSelected, hasIcon, theme) => {
|
|
|
5520
5590
|
|
|
5521
5591
|
const MIN_ITEM_WIDTH = 46;
|
|
5522
5592
|
const MAX_ITEM_WIDTH = 220;
|
|
5523
|
-
const getComponentCss$
|
|
5593
|
+
const getComponentCss$q = (maxWidth) => {
|
|
5524
5594
|
maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
|
|
5525
5595
|
return getCss({
|
|
5526
5596
|
'@global': {
|
|
@@ -5579,7 +5649,7 @@ const getLabelStyles = (child, isDisabled, hideLabel, state, theme, counterOrUni
|
|
|
5579
5649
|
}));
|
|
5580
5650
|
};
|
|
5581
5651
|
const ICON_SPACE = `${24 + 13 * 2 + 2}px`; // 24px = icon width, 13px * 2 = padding, 2px = border
|
|
5582
|
-
const getComponentCss$
|
|
5652
|
+
const getComponentCss$p = (isDisabled, hideLabel, state, theme) => {
|
|
5583
5653
|
return getCss(Object.assign(Object.assign(Object.assign({ '@global': addImportantToEachRule(Object.assign({ ':host': Object.assign({ display: 'block' }, hostHiddenStyles) }, getBaseChildStyles('select', state, theme, {
|
|
5584
5654
|
position: 'static',
|
|
5585
5655
|
zIndex: 0,
|
|
@@ -5611,7 +5681,7 @@ const sizeMap$1 = {
|
|
|
5611
5681
|
large: { height: sizeLarge, width: sizeLarge },
|
|
5612
5682
|
inherit: { height: 'inherit', width: 'inherit' },
|
|
5613
5683
|
};
|
|
5614
|
-
const getComponentCss$
|
|
5684
|
+
const getComponentCss$n = (size, theme) => {
|
|
5615
5685
|
const strokeDasharray = '57'; // C = 2πR
|
|
5616
5686
|
const animationDuration = 'var(--p-animation-duration, 2s)';
|
|
5617
5687
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
@@ -5689,7 +5759,7 @@ const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
|
|
|
5689
5759
|
];
|
|
5690
5760
|
return svgNumberedCirclePaths[stepCount];
|
|
5691
5761
|
};
|
|
5692
|
-
const getComponentCss$
|
|
5762
|
+
const getComponentCss$m = (state, disabled, theme) => {
|
|
5693
5763
|
const { primaryColor, hoverColor, disabledColor, focusColor } = getThemedColors(theme);
|
|
5694
5764
|
const isStateCurrent = state === 'current';
|
|
5695
5765
|
const isStateCurrentOrUndefined = !state || isStateCurrent;
|
|
@@ -5717,7 +5787,7 @@ const getComponentCss$l = (state, disabled, theme) => {
|
|
|
5717
5787
|
height: fontLineHeight,
|
|
5718
5788
|
width: fontLineHeight,
|
|
5719
5789
|
},
|
|
5720
|
-
})), { '&:focus::after': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(
|
|
5790
|
+
})), { '&:focus::after': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle()), { border: `${borderWidthBase} solid ${focusColor}`, borderRadius: borderRadiusSmall }), '&:focus:not(:focus-visible)::after': {
|
|
5721
5791
|
borderColor: 'transparent',
|
|
5722
5792
|
} }),
|
|
5723
5793
|
} }, (!isStateCurrentOrUndefined && {
|
|
@@ -5729,7 +5799,7 @@ const getComponentCss$l = (state, disabled, theme) => {
|
|
|
5729
5799
|
})), { 'sr-only': getScreenReaderOnlyJssStyle() }));
|
|
5730
5800
|
};
|
|
5731
5801
|
|
|
5732
|
-
const getComponentCss$
|
|
5802
|
+
const getComponentCss$l = (size) => {
|
|
5733
5803
|
return getCss({
|
|
5734
5804
|
'@global': {
|
|
5735
5805
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -5755,7 +5825,7 @@ const getColors$1 = (checked, disabled, loading, theme) => {
|
|
|
5755
5825
|
textColor: disabledOrLoadingColor || primaryColor,
|
|
5756
5826
|
};
|
|
5757
5827
|
};
|
|
5758
|
-
const getComponentCss$
|
|
5828
|
+
const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, loading, theme) => {
|
|
5759
5829
|
const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, buttonBackgroundColorHover, toggleBackgroundColor, toggleBackgroundColorHover, textColor, } = getColors$1(checked, disabled, loading, theme);
|
|
5760
5830
|
const { focusColor } = getThemedColors(theme);
|
|
5761
5831
|
return getCss(Object.assign(Object.assign({ '@global': {
|
|
@@ -5808,7 +5878,7 @@ const getComponentCss$j = (alignLabel, hideLabel, stretch, checked, disabled, lo
|
|
|
5808
5878
|
})), buildResponsiveStyles(hideLabel, getTextHiddenJssStyle))) }));
|
|
5809
5879
|
};
|
|
5810
5880
|
|
|
5811
|
-
const getComponentCss$
|
|
5881
|
+
const getComponentCss$j = () => {
|
|
5812
5882
|
return getCss({
|
|
5813
5883
|
'@global': {
|
|
5814
5884
|
':host': addImportantToEachRule(Object.assign({ display: 'table-row-group' }, hostHiddenStyles)),
|
|
@@ -5816,10 +5886,10 @@ const getComponentCss$i = () => {
|
|
|
5816
5886
|
});
|
|
5817
5887
|
};
|
|
5818
5888
|
|
|
5819
|
-
const getComponentCss$
|
|
5889
|
+
const getComponentCss$i = (multiline) => {
|
|
5820
5890
|
return getCss({
|
|
5821
5891
|
'@global': {
|
|
5822
|
-
':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ display: 'table-cell', padding:
|
|
5892
|
+
':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign({ display: 'table-cell', padding: spacingFluidSmall, margin: 0, whiteSpace: multiline ? 'normal' : 'nowrap' }, hostHiddenStyles))), { verticalAlign: 'middle' }),
|
|
5823
5893
|
},
|
|
5824
5894
|
});
|
|
5825
5895
|
};
|
|
@@ -5829,26 +5899,71 @@ const isSortable = (active, direction) => {
|
|
|
5829
5899
|
return active !== undefined && direction !== undefined;
|
|
5830
5900
|
};
|
|
5831
5901
|
|
|
5832
|
-
const
|
|
5833
|
-
const
|
|
5902
|
+
const cssVariableTableHoverColor = '--p-internal-table-hover-color';
|
|
5903
|
+
const cssVariableTableBorderColor = '--p-internal-table-border-color';
|
|
5904
|
+
const cssVariableTableHeadCellIconFilter = '--p-internal-table-head-cell-icon-filter';
|
|
5905
|
+
const getComponentCss$h = (theme) => {
|
|
5906
|
+
const { primaryColor, hoverColor, contrastLowColor } = doGetThemedColors(theme);
|
|
5907
|
+
return getCss({
|
|
5908
|
+
'@global': {
|
|
5909
|
+
':host': addImportantToEachRule(Object.assign(Object.assign(Object.assign({ display: 'block' }, textSmallStyle), { color: primaryColor, textAlign: 'left' }), hostHiddenStyles)),
|
|
5910
|
+
'::slotted(*)': addImportantToEachRule({
|
|
5911
|
+
[cssVariableTableHoverColor]: hoverColor,
|
|
5912
|
+
[cssVariableTableBorderColor]: contrastLowColor,
|
|
5913
|
+
[cssVariableTableHeadCellIconFilter]: isThemeDark(theme) ? 'invert(100%)' : 'none',
|
|
5914
|
+
}),
|
|
5915
|
+
},
|
|
5916
|
+
caption: {
|
|
5917
|
+
marginBottom: spacingFluidMedium,
|
|
5918
|
+
},
|
|
5919
|
+
table: {
|
|
5920
|
+
display: 'table',
|
|
5921
|
+
borderCollapse: 'collapse',
|
|
5922
|
+
width: '100%',
|
|
5923
|
+
whiteSpace: 'nowrap', // shouldn't be inherited for caption, that's why it's defined here
|
|
5924
|
+
},
|
|
5925
|
+
});
|
|
5926
|
+
};
|
|
5927
|
+
|
|
5928
|
+
const { hoverColor, focusColor } = getThemedColors('light'); // hover color and focus color are the same for light and dark
|
|
5929
|
+
const buttonBeforeOffsetVertical = '-2px';
|
|
5930
|
+
const buttonBeforeOffsetHorizontal = '-4px';
|
|
5834
5931
|
const getComponentCss$g = (active, direction, hideLabel, multiline) => {
|
|
5835
5932
|
const sortable = isSortable(active, direction);
|
|
5836
|
-
return getCss(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'table-cell', padding:
|
|
5933
|
+
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
5934
|
? {
|
|
5838
|
-
button: Object.assign(Object.assign(
|
|
5935
|
+
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': {
|
|
5936
|
+
content: '""',
|
|
5937
|
+
position: 'absolute',
|
|
5938
|
+
top: buttonBeforeOffsetVertical,
|
|
5939
|
+
bottom: buttonBeforeOffsetVertical,
|
|
5940
|
+
right: buttonBeforeOffsetHorizontal,
|
|
5941
|
+
left: buttonBeforeOffsetHorizontal,
|
|
5942
|
+
borderRadius: borderRadiusSmall,
|
|
5943
|
+
zIndex: -1,
|
|
5944
|
+
transition: getTransition('background-color'),
|
|
5945
|
+
} }, hoverMediaQuery({
|
|
5946
|
+
'&:hover, &:focus': {
|
|
5839
5947
|
'& .icon': {
|
|
5840
5948
|
opacity: 1,
|
|
5841
5949
|
},
|
|
5842
|
-
}
|
|
5950
|
+
},
|
|
5951
|
+
'&:hover::before': Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }),
|
|
5952
|
+
})), { '&:focus::before': {
|
|
5953
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
5954
|
+
}, '&:not(:focus-visible)::before': {
|
|
5955
|
+
border: 0,
|
|
5956
|
+
} }),
|
|
5843
5957
|
}
|
|
5844
5958
|
: hideLabel && {
|
|
5845
5959
|
span: Object.assign(Object.assign({}, getTextHiddenJssStyle(true)), { display: 'block', border: 0 }),
|
|
5846
5960
|
})) }, (sortable && {
|
|
5847
5961
|
icon: {
|
|
5848
|
-
|
|
5962
|
+
transition: getTransition('opacity'),
|
|
5849
5963
|
opacity: active ? 1 : 0,
|
|
5850
5964
|
transform: `rotate3d(0,0,1,${isDirectionAsc(direction) ? 0 : 180}deg)`,
|
|
5851
|
-
transformOrigin: '50% 50%',
|
|
5965
|
+
transformOrigin: '50% 50%',
|
|
5966
|
+
filter: `var(${cssVariableTableHeadCellIconFilter})`,
|
|
5852
5967
|
},
|
|
5853
5968
|
})));
|
|
5854
5969
|
};
|
|
@@ -5864,7 +5979,7 @@ const getComponentCss$f = () => {
|
|
|
5864
5979
|
const getComponentCss$e = () => {
|
|
5865
5980
|
return getCss({
|
|
5866
5981
|
'@global': {
|
|
5867
|
-
':host': addImportantToEachRule(Object.assign({ display: 'table-header-group' }, hostHiddenStyles)),
|
|
5982
|
+
':host': addImportantToEachRule(Object.assign({ display: 'table-header-group', fontSize: fontSizeTextXSmall, lineHeight: fontLineHeight, fontWeight: fontWeightSemiBold }, hostHiddenStyles)),
|
|
5868
5983
|
},
|
|
5869
5984
|
});
|
|
5870
5985
|
};
|
|
@@ -5872,71 +5987,19 @@ const getComponentCss$e = () => {
|
|
|
5872
5987
|
const getComponentCss$d = () => {
|
|
5873
5988
|
return getCss({
|
|
5874
5989
|
'@global': {
|
|
5875
|
-
':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'table-row' }, hostHiddenStyles), hoverMediaQuery({
|
|
5876
|
-
transition: getTransition('background-color'),
|
|
5990
|
+
':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
5991
|
'&(:hover)': {
|
|
5878
|
-
|
|
5992
|
+
// ...frostedGlassStyle, // will result in not smooth transition when applied
|
|
5993
|
+
background: `var(${cssVariableTableHoverColor})`,
|
|
5879
5994
|
},
|
|
5880
5995
|
}))),
|
|
5881
5996
|
},
|
|
5882
5997
|
});
|
|
5883
5998
|
};
|
|
5884
5999
|
|
|
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
6000
|
const tabsTransitionDuration = '.4s';
|
|
5938
6001
|
const transformSelector = (selector) => ['a', 'button'].map((tag) => selector.replace(/\[role]/g, tag)).join();
|
|
5939
|
-
const getComponentCss$
|
|
6002
|
+
const getComponentCss$c = (size, weight, theme) => {
|
|
5940
6003
|
const { primaryColor, hoverColor, focusColor } = getThemedColors(theme);
|
|
5941
6004
|
return getCss({
|
|
5942
6005
|
'@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative',
|
|
@@ -5975,7 +6038,7 @@ const getComponentCss$b = (size, weight, theme) => {
|
|
|
5975
6038
|
});
|
|
5976
6039
|
};
|
|
5977
6040
|
|
|
5978
|
-
const getComponentCss$
|
|
6041
|
+
const getComponentCss$b = (theme) => {
|
|
5979
6042
|
const { primaryColor, focusColor } = getThemedColors(theme);
|
|
5980
6043
|
return getCss({
|
|
5981
6044
|
'@global': {
|
|
@@ -5989,7 +6052,7 @@ const getComponentCss$a = (theme) => {
|
|
|
5989
6052
|
});
|
|
5990
6053
|
};
|
|
5991
6054
|
|
|
5992
|
-
const getComponentCss$
|
|
6055
|
+
const getComponentCss$a = () => {
|
|
5993
6056
|
return getCss({
|
|
5994
6057
|
'@global': {
|
|
5995
6058
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -6021,7 +6084,7 @@ const getThemedBackgroundColor = (tagColor, themedColors) => {
|
|
|
6021
6084
|
return colorMap[tagColor];
|
|
6022
6085
|
};
|
|
6023
6086
|
|
|
6024
|
-
const getComponentCss$
|
|
6087
|
+
const getComponentCss$9 = (color, hasLabel, theme) => {
|
|
6025
6088
|
const themedColors = getThemedColors(theme);
|
|
6026
6089
|
const { primaryColor, hoverColor, contrastHighColor } = themedColors;
|
|
6027
6090
|
const backgroundColor = getThemedBackgroundColor(color, themedColors);
|
|
@@ -6071,7 +6134,7 @@ const getColors = (themedColors, tagColor, theme) => {
|
|
|
6071
6134
|
backgroundHoverColor: getThemedBackgroundHoverColor(tagColor, themedColors, theme),
|
|
6072
6135
|
};
|
|
6073
6136
|
};
|
|
6074
|
-
const getComponentCss$
|
|
6137
|
+
const getComponentCss$8 = (tagColor, isFocusable, theme) => {
|
|
6075
6138
|
const themedColors = getThemedColors(theme);
|
|
6076
6139
|
const { primaryColor, backgroundColor, backgroundHoverColor } = getColors(themedColors, tagColor, theme);
|
|
6077
6140
|
return getCss({
|
|
@@ -6128,7 +6191,7 @@ const getButtonOrIconOffsetHorizontal = (buttonOrIconAmount) => {
|
|
|
6128
6191
|
const multiplier = buttonOrIconAmount > 1 ? ` + ${buttonOrIconSize} * ${buttonOrIconAmount - 1}` : '';
|
|
6129
6192
|
return `calc(${buttonOrIconOffset} + ${borderWidthBase}${multiplier})`;
|
|
6130
6193
|
};
|
|
6131
|
-
const getComponentCss$
|
|
6194
|
+
const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, isWithinForm, theme) => {
|
|
6132
6195
|
const { contrastMediumColor } = getThemedColors(theme);
|
|
6133
6196
|
const isSearch = isType(inputType, 'search');
|
|
6134
6197
|
const isPassword = isType(inputType, 'password');
|
|
@@ -6184,7 +6247,7 @@ const cssVariableUnorderedPaddingLeft = '--p-internal-text-list-unordered-paddin
|
|
|
6184
6247
|
const cssVariableOrderedPaddingLeft = '--p-internal-text-list-ordered-padding-left';
|
|
6185
6248
|
const cssVariableListStyleType = '--p-internal-text-list-list-style-type';
|
|
6186
6249
|
const counter = 'p-text-list-counter';
|
|
6187
|
-
const getComponentCss$
|
|
6250
|
+
const getComponentCss$6 = (type, theme) => {
|
|
6188
6251
|
const isOrderedList = isListTypeOrdered(type);
|
|
6189
6252
|
return getCss({
|
|
6190
6253
|
'@global': {
|
|
@@ -6210,7 +6273,7 @@ const getComponentCss$5 = (type, theme) => {
|
|
|
6210
6273
|
});
|
|
6211
6274
|
};
|
|
6212
6275
|
|
|
6213
|
-
const getComponentCss$
|
|
6276
|
+
const getComponentCss$5 = () => {
|
|
6214
6277
|
return getCss({
|
|
6215
6278
|
'@global': addImportantToEachRule({
|
|
6216
6279
|
':host': Object.assign({ display: 'list-item', position: 'relative', font: 'inherit', color: 'inherit', listStyleType: 'inherit', paddingLeft: spacingStaticMedium }, hostHiddenStyles),
|
|
@@ -6231,7 +6294,7 @@ const sizeMap = {
|
|
|
6231
6294
|
large: fontSizeTextLarge,
|
|
6232
6295
|
'x-large': fontSizeTextXLarge,
|
|
6233
6296
|
};
|
|
6234
|
-
const getComponentCss$
|
|
6297
|
+
const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
|
|
6235
6298
|
return getCss({
|
|
6236
6299
|
'@global': {
|
|
6237
6300
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -6246,7 +6309,7 @@ const getComponentCss$3 = (size, weight, align, color, ellipsis, theme) => {
|
|
|
6246
6309
|
});
|
|
6247
6310
|
};
|
|
6248
6311
|
|
|
6249
|
-
const getComponentCss$
|
|
6312
|
+
const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
|
|
6250
6313
|
const { contrastMediumColor } = getThemedColors(theme);
|
|
6251
6314
|
return getCss(Object.assign(Object.assign(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)) }, mergeDeep(addImportantToEachRule(getBaseChildStyles('textarea', state, theme, {
|
|
6252
6315
|
font: textSmallStyle.font,
|
|
@@ -6271,27 +6334,41 @@ const getComponentCss$2 = (isDisabled, hideLabel, state, hasCounter, theme) => {
|
|
|
6271
6334
|
})));
|
|
6272
6335
|
};
|
|
6273
6336
|
|
|
6274
|
-
const
|
|
6275
|
-
const
|
|
6337
|
+
const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
|
|
6338
|
+
const cssVariablePositionBottomInternal = '--p-internal-toast-position-bottom';
|
|
6276
6339
|
const toastCloseClassName = 'close';
|
|
6277
|
-
const getComponentCss = () => {
|
|
6340
|
+
const getComponentCss$1 = () => {
|
|
6278
6341
|
return getCss({
|
|
6279
6342
|
'@global': {
|
|
6280
|
-
':host': addImportantToEachRule(Object.assign({ position: 'fixed', left:
|
|
6343
|
+
':host': addImportantToEachRule(Object.assign({ position: 'fixed', left: gridExtendedOffsetBase, right: gridExtendedOffsetBase,
|
|
6281
6344
|
// Needs a not overridable internal css variable to cover default position depending on viewport size and to handle animation properly.
|
|
6282
6345
|
// In addition, a public css variable can be passed to overwrite the default position.
|
|
6283
|
-
[
|
|
6346
|
+
[cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 56px)`, bottom: `var(${cssVariablePositionBottomInternal})`, maxWidth: '42rem', zIndex: TOAST_Z_INDEX, [getMediaQueryMin('s')]: {
|
|
6284
6347
|
left: '64px',
|
|
6285
6348
|
right: 'auto',
|
|
6286
|
-
[
|
|
6287
|
-
bottom: `var(${
|
|
6349
|
+
[cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 64px)`,
|
|
6350
|
+
bottom: `var(${cssVariablePositionBottomInternal})`,
|
|
6288
6351
|
} }, hostHiddenStyles)),
|
|
6289
|
-
'@keyframes in': getKeyframesMobile('in',
|
|
6290
|
-
'@keyframes out': getKeyframesMobile('out',
|
|
6352
|
+
'@keyframes in': getKeyframesMobile('in', cssVariablePositionBottomInternal),
|
|
6353
|
+
'@keyframes out': getKeyframesMobile('out', cssVariablePositionBottomInternal),
|
|
6291
6354
|
},
|
|
6292
6355
|
hydrated: getAnimationIn('in', "production" !== 'production' ),
|
|
6293
6356
|
[toastCloseClassName]: getAnimationOut('out'),
|
|
6294
6357
|
});
|
|
6295
6358
|
};
|
|
6296
6359
|
|
|
6297
|
-
|
|
6360
|
+
const getComponentCss = (size, theme) => {
|
|
6361
|
+
return getCss({
|
|
6362
|
+
'@global': {
|
|
6363
|
+
':host': Object.assign({ position: 'relative', display: 'inline-block', verticalAlign: 'top' }, addImportantToEachRule(Object.assign(Object.assign({ outline: 0, boxSizing: 'content-box' }, (!(size === 'inherit') && { height: 'clamp(0.63rem, 0.42vw + 0.5rem, 1rem)' })), hostHiddenStyles))),
|
|
6364
|
+
a: Object.assign({ display: 'block', textDecoration: 'none', height: 'inherit' }, focusPseudoJssStyle),
|
|
6365
|
+
svg: {
|
|
6366
|
+
display: 'block',
|
|
6367
|
+
height: 'inherit',
|
|
6368
|
+
fill: getThemedColors(theme).primaryColor,
|
|
6369
|
+
},
|
|
6370
|
+
},
|
|
6371
|
+
});
|
|
6372
|
+
};
|
|
6373
|
+
|
|
6374
|
+
export { getComponentCss$Y as getAccordionCss, getComponentCss$X as getBannerCss, getComponentCss$T as getButtonCss, getComponentCss$W as getButtonGroupCss, getComponentCss$V as getButtonPureCss, getComponentCss$U as getButtonTileCss, getComponentCss$S as getCarouselCss, getComponentCss$R as getCheckboxWrapperCss, getComponentCss$Q as getContentWrapperCss, getComponentCss$P as getCrestCss, getComponentCss$O as getDisplayCss, getComponentCss$N as getDividerCss, getComponentCss$L as getFieldsetCss, getComponentCss$M as getFieldsetWrapperCss, getComponentCss$J as getFlexCss, getComponentCss$K as getFlexItemCss, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$H as getGridCss, getComponentCss$I as getGridItemCss, getComponentCss$G as getHeadingCss, getComponentCss$F as getHeadlineCss, getComponentCss$E as getIconCss, getComponentCss$D as getInlineNotificationCss, getComponentCss$B as getLinkCss, getComponentCss$C as getLinkPureCss, getComponentCss$B as getLinkSocialCss, getComponentCss$z as getLinkTileCss, getComponentCss$A as getLinkTileModelSignatureCss, getComponentCss$y as getMarqueCss, getComponentCss$x as getModalCss, getComponentCss$w as getModelSignatureCss, getComponentCss$v as getPaginationCss, getComponentCss$u as getPopoverCss, getComponentCss$t as getRadioButtonWrapperCss, getComponentCss$s as getScrollerCss, getComponentCss$q as getSegmentedControlCss, getComponentCss$r as getSegmentedControlItemCss, getComponentCss$p as getSelectWrapperCss, getComponentCss$n as getSpinnerCss, getComponentCss$l as getStepperHorizontalCss, getComponentCss$m as getStepperHorizontalItemCss, getComponentCss$k as getSwitchCss, getComponentCss$j as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$h as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$c as getTabsBarCss, getComponentCss$a as getTabsCss, getComponentCss$b as getTabsItemCss, getComponentCss$8 as getTagCss, getComponentCss$9 as getTagDismissibleCss, getComponentCss$4 as getTextCss, getComponentCss$7 as getTextFieldWrapperCss, getComponentCss$6 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$3 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
|