@porsche-design-system/components-react 3.16.0 → 3.17.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -1
- package/cjs/lib/components/button-tile.wrapper.cjs +1 -1
- package/cjs/lib/components/content-wrapper.wrapper.cjs +0 -1
- package/cjs/lib/components/fieldset-wrapper.wrapper.cjs +0 -1
- package/cjs/lib/components/flex-item.wrapper.cjs +0 -1
- package/cjs/lib/components/flex.wrapper.cjs +0 -1
- package/cjs/lib/components/flyout.wrapper.cjs +3 -1
- package/cjs/lib/components/grid-item.wrapper.cjs +0 -1
- package/cjs/lib/components/grid.wrapper.cjs +0 -1
- package/cjs/lib/components/headline.wrapper.cjs +0 -1
- package/cjs/lib/components/link-social.wrapper.cjs +0 -1
- package/cjs/lib/components/link-tile-model-signature.wrapper.cjs +1 -1
- package/cjs/lib/components/link-tile.wrapper.cjs +1 -1
- package/cjs/lib/components/modal.wrapper.cjs +3 -1
- package/cjs/lib/components/optgroup.wrapper.cjs +26 -0
- package/cjs/lib/components/tag.wrapper.cjs +3 -3
- package/cjs/public-api.cjs +2 -0
- package/esm/lib/components/accordion.wrapper.d.ts +11 -12
- package/esm/lib/components/banner.wrapper.d.ts +10 -11
- package/esm/lib/components/button-group.wrapper.d.ts +2 -3
- package/esm/lib/components/button-pure.wrapper.d.ts +17 -18
- package/esm/lib/components/button-tile.wrapper.d.ts +14 -15
- package/esm/lib/components/button-tile.wrapper.mjs +1 -1
- package/esm/lib/components/button.wrapper.d.ts +12 -13
- package/esm/lib/components/canvas.wrapper.d.ts +7 -8
- package/esm/lib/components/carousel.wrapper.d.ts +18 -19
- package/esm/lib/components/checkbox-wrapper.wrapper.d.ts +7 -8
- package/esm/lib/components/content-wrapper.wrapper.d.ts +4 -6
- package/esm/lib/components/content-wrapper.wrapper.mjs +0 -1
- package/esm/lib/components/crest.wrapper.d.ts +3 -4
- package/esm/lib/components/display.wrapper.d.ts +7 -8
- package/esm/lib/components/divider.wrapper.d.ts +4 -5
- package/esm/lib/components/fieldset-wrapper.wrapper.d.ts +7 -9
- package/esm/lib/components/fieldset-wrapper.wrapper.mjs +0 -1
- package/esm/lib/components/fieldset.wrapper.d.ts +7 -8
- package/esm/lib/components/flex-item.wrapper.d.ts +7 -9
- package/esm/lib/components/flex-item.wrapper.mjs +0 -1
- package/esm/lib/components/flex.wrapper.d.ts +7 -9
- package/esm/lib/components/flex.wrapper.mjs +0 -1
- package/esm/lib/components/flyout-multilevel-item.wrapper.d.ts +2 -3
- package/esm/lib/components/flyout-multilevel.wrapper.d.ts +6 -7
- package/esm/lib/components/flyout.wrapper.d.ts +23 -8
- package/esm/lib/components/flyout.wrapper.mjs +3 -1
- package/esm/lib/components/grid-item.wrapper.d.ts +3 -5
- package/esm/lib/components/grid-item.wrapper.mjs +0 -1
- package/esm/lib/components/grid.wrapper.d.ts +4 -6
- package/esm/lib/components/grid.wrapper.mjs +0 -1
- package/esm/lib/components/heading.wrapper.d.ts +7 -8
- package/esm/lib/components/headline.wrapper.d.ts +7 -9
- package/esm/lib/components/headline.wrapper.mjs +0 -1
- package/esm/lib/components/icon.wrapper.d.ts +7 -8
- package/esm/lib/components/index.d.ts +1 -0
- package/esm/lib/components/inline-notification.wrapper.d.ts +13 -14
- package/esm/lib/components/link-pure.wrapper.d.ts +16 -17
- package/esm/lib/components/link-social.wrapper.d.ts +8 -10
- package/esm/lib/components/link-social.wrapper.mjs +0 -1
- package/esm/lib/components/link-tile-model-signature.wrapper.d.ts +7 -8
- package/esm/lib/components/link-tile-model-signature.wrapper.mjs +1 -1
- package/esm/lib/components/link-tile-product.wrapper.d.ts +11 -12
- package/esm/lib/components/link-tile.wrapper.d.ts +12 -13
- package/esm/lib/components/link-tile.wrapper.mjs +1 -1
- package/esm/lib/components/link.wrapper.d.ts +11 -12
- package/esm/lib/components/marque.wrapper.d.ts +6 -7
- package/esm/lib/components/modal.wrapper.d.ts +28 -13
- package/esm/lib/components/modal.wrapper.mjs +3 -1
- package/esm/lib/components/model-signature.wrapper.d.ts +8 -9
- package/esm/lib/components/multi-select-option.wrapper.d.ts +2 -3
- package/esm/lib/components/multi-select.wrapper.d.ts +12 -13
- package/esm/lib/components/optgroup.wrapper.d.ts +23 -0
- package/esm/lib/components/optgroup.wrapper.mjs +24 -0
- package/esm/lib/components/pagination.wrapper.d.ts +11 -12
- package/esm/lib/components/pin-code.wrapper.d.ts +15 -16
- package/esm/lib/components/popover.wrapper.d.ts +5 -6
- package/esm/lib/components/radio-button-wrapper.wrapper.d.ts +7 -8
- package/esm/lib/components/scroller.wrapper.d.ts +9 -10
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +6 -7
- package/esm/lib/components/segmented-control.wrapper.d.ts +7 -8
- package/esm/lib/components/select-option.wrapper.d.ts +3 -4
- package/esm/lib/components/select-wrapper.wrapper.d.ts +10 -11
- package/esm/lib/components/select.wrapper.d.ts +12 -13
- package/esm/lib/components/spinner.wrapper.d.ts +3 -4
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +3 -4
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +5 -6
- package/esm/lib/components/switch.wrapper.d.ts +10 -11
- package/esm/lib/components/table-body.wrapper.d.ts +1 -2
- package/esm/lib/components/table-cell.wrapper.d.ts +2 -3
- package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -5
- package/esm/lib/components/table-head-row.wrapper.d.ts +1 -2
- package/esm/lib/components/table-head.wrapper.d.ts +1 -2
- package/esm/lib/components/table-row.wrapper.d.ts +1 -2
- package/esm/lib/components/table.wrapper.d.ts +5 -6
- package/esm/lib/components/tabs-bar.wrapper.d.ts +8 -9
- package/esm/lib/components/tabs-item.wrapper.d.ts +1 -2
- package/esm/lib/components/tabs.wrapper.d.ts +9 -10
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +5 -6
- package/esm/lib/components/tag.wrapper.d.ts +13 -6
- package/esm/lib/components/tag.wrapper.mjs +3 -3
- package/esm/lib/components/text-field-wrapper.wrapper.d.ts +16 -17
- package/esm/lib/components/text-list-item.wrapper.d.ts +1 -2
- package/esm/lib/components/text-list.wrapper.d.ts +5 -6
- package/esm/lib/components/text.wrapper.d.ts +8 -9
- package/esm/lib/components/textarea-wrapper.wrapper.d.ts +9 -10
- package/esm/lib/components/toast.wrapper.d.ts +1 -2
- package/esm/lib/components/wordmark.wrapper.d.ts +5 -6
- package/esm/lib/types.d.ts +14 -2
- package/esm/provider.d.ts +1 -1
- package/esm/public-api.mjs +1 -0
- package/jsdom-polyfill/index.d.ts +0 -1
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +669 -588
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +17 -191
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flex-item.wrapper.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flex.wrapper.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.cjs +3 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/grid-item.wrapper.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/grid.wrapper.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.cjs +0 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.cjs +3 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/optgroup.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tag.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +7 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +8 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +6 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +13 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +10 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +6 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.cjs +4 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +5 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.cjs +4 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.cjs +4 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.cjs +6 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel.cjs +9 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +9 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.cjs +5 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +5 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +6 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +10 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +10 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +7 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +9 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +10 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.cjs +23 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +8 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +6 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/required.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +5 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +7 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +12 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +6 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +5 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +6 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +6 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +4 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +7 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +7 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +6 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +622 -542
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +18 -190
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flex-item.wrapper.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flex.wrapper.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs +3 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/grid-item.wrapper.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/grid.wrapper.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.mjs +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.mjs +3 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/optgroup.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tag.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +9 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +10 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +15 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +12 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +9 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +7 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.mjs +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel.mjs +11 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +11 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +7 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +7 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +7 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +7 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +12 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +12 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +8 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +11 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +12 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +21 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +10 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/required.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +7 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +9 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +12 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +4 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +4 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +6 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +4 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +5 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +6 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +6 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +4 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +7 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +6 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/banner.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/button-group.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/button.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/checkbox-wrapper.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/content-wrapper.wrapper.d.ts +1 -3
- package/ssr/esm/lib/components/crest.wrapper.d.ts +0 -1
- package/ssr/esm/lib/components/display.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/divider.wrapper.d.ts +0 -1
- package/ssr/esm/lib/components/fieldset-wrapper.wrapper.d.ts +1 -3
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/flex-item.wrapper.d.ts +1 -3
- package/ssr/esm/lib/components/flex.wrapper.d.ts +1 -3
- package/ssr/esm/lib/components/flyout-multilevel-item.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/flyout-multilevel.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +18 -3
- package/ssr/esm/lib/components/grid-item.wrapper.d.ts +1 -3
- package/ssr/esm/lib/components/grid.wrapper.d.ts +1 -3
- package/ssr/esm/lib/components/heading.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/headline.wrapper.d.ts +1 -3
- package/ssr/esm/lib/components/icon.wrapper.d.ts +0 -1
- package/ssr/esm/lib/components/index.d.ts +1 -0
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/link-social.wrapper.d.ts +1 -3
- package/ssr/esm/lib/components/link-tile-model-signature.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/link.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/marque.wrapper.d.ts +0 -1
- package/ssr/esm/lib/components/modal.wrapper.d.ts +18 -3
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +23 -0
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +0 -1
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/popover.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/radio-button-wrapper.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/select-wrapper-dropdown.wrapper.d.ts +0 -1
- package/ssr/esm/lib/components/select-wrapper.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/select.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +0 -1
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/switch.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/table-body.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/table-head-row.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/table-head.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/table-row.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/table.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/tag.wrapper.d.ts +9 -2
- package/ssr/esm/lib/components/text-field-wrapper.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/text-list-item.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/text.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/textarea-wrapper.wrapper.d.ts +1 -2
- package/ssr/esm/lib/components/toast.wrapper.d.ts +0 -1
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +0 -1
- package/ssr/esm/lib/dsr-components/accordion.d.ts +6 -0
- package/ssr/esm/lib/dsr-components/banner.d.ts +7 -0
- package/ssr/esm/lib/dsr-components/button-group.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/button-pure.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/button-tile.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/button.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/canvas.d.ts +12 -1
- package/ssr/esm/lib/dsr-components/carousel.d.ts +8 -0
- package/ssr/esm/lib/dsr-components/checkbox-wrapper.d.ts +5 -0
- package/ssr/esm/lib/dsr-components/content-wrapper.d.ts +4 -1
- package/ssr/esm/lib/dsr-components/display.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/fieldset-wrapper.d.ts +7 -1
- package/ssr/esm/lib/dsr-components/fieldset.d.ts +5 -0
- package/ssr/esm/lib/dsr-components/flex-item.d.ts +4 -1
- package/ssr/esm/lib/dsr-components/flex.d.ts +4 -1
- package/ssr/esm/lib/dsr-components/flyout-multilevel-item.d.ts +5 -1
- package/ssr/esm/lib/dsr-components/flyout-multilevel.d.ts +8 -1
- package/ssr/esm/lib/dsr-components/flyout.d.ts +8 -0
- package/ssr/esm/lib/dsr-components/grid-item.d.ts +5 -1
- package/ssr/esm/lib/dsr-components/grid.d.ts +5 -1
- package/ssr/esm/lib/dsr-components/heading.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/headline.d.ts +5 -1
- package/ssr/esm/lib/dsr-components/inline-notification.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/link-pure.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/link-social.d.ts +5 -1
- package/ssr/esm/lib/dsr-components/link-tile-model-signature.d.ts +6 -0
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +9 -1
- package/ssr/esm/lib/dsr-components/link-tile.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/link.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/modal.d.ts +8 -0
- package/ssr/esm/lib/dsr-components/model-signature.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/multi-select-option.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +9 -0
- package/ssr/esm/lib/dsr-components/optgroup.d.ts +9 -0
- package/ssr/esm/lib/dsr-components/pagination.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/pin-code.d.ts +7 -0
- package/ssr/esm/lib/dsr-components/popover.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/radio-button-wrapper.d.ts +5 -0
- package/ssr/esm/lib/dsr-components/scroller.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/segmented-control-item.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/segmented-control.d.ts +5 -0
- package/ssr/esm/lib/dsr-components/select-option.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/select-wrapper.d.ts +6 -0
- package/ssr/esm/lib/dsr-components/select.d.ts +9 -0
- package/ssr/esm/lib/dsr-components/stepper-horizontal-item.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/switch.d.ts +5 -0
- package/ssr/esm/lib/dsr-components/table-body.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/table-cell.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/table-head-cell.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/table-head-row.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/table-head.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/table-row.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/table.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +5 -0
- package/ssr/esm/lib/dsr-components/tabs-item.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/tabs.d.ts +5 -0
- package/ssr/esm/lib/dsr-components/tag-dismissible.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/tag.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/text-field-wrapper.d.ts +6 -0
- package/ssr/esm/lib/dsr-components/text-list-item.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/text-list.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/text.d.ts +3 -0
- package/ssr/esm/lib/dsr-components/textarea-wrapper.d.ts +6 -0
- package/ssr/esm/lib/types.d.ts +14 -2
|
@@ -33,11 +33,11 @@ function toPrimitive(t, r) {
|
|
|
33
33
|
if ("object" != _typeof(t) || !t) return t;
|
|
34
34
|
var e = t[Symbol.toPrimitive];
|
|
35
35
|
if (void 0 !== e) {
|
|
36
|
-
var i = e.call(t, r
|
|
36
|
+
var i = e.call(t, r );
|
|
37
37
|
if ("object" != _typeof(i)) return i;
|
|
38
38
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
39
39
|
}
|
|
40
|
-
return (
|
|
40
|
+
return (String )(t);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function toPropertyKey(t) {
|
|
@@ -56,7 +56,6 @@ function _defineProperties(target, props) {
|
|
|
56
56
|
}
|
|
57
57
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
58
58
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
59
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
60
59
|
Object.defineProperty(Constructor, "prototype", {
|
|
61
60
|
writable: false
|
|
62
61
|
});
|
|
@@ -3161,6 +3160,18 @@ const hasWindow = typeof window !== 'undefined';
|
|
|
3161
3160
|
|
|
3162
3161
|
const isHighContrastMode = hasWindow && window.matchMedia?.('(forced-colors: active)').matches;
|
|
3163
3162
|
|
|
3163
|
+
const lighten = (hsl) => {
|
|
3164
|
+
return changeColor(hsl, 10);
|
|
3165
|
+
};
|
|
3166
|
+
const darken = (hsl) => {
|
|
3167
|
+
return changeColor(hsl, -10);
|
|
3168
|
+
};
|
|
3169
|
+
const changeColor = (hsl, lightness) => {
|
|
3170
|
+
return hsl.replace(/\s(\d+)(%?)\//, (_, p1, p2) => {
|
|
3171
|
+
return ` ${Math.min(Math.max(parseInt(p1, 10) + lightness, 0), 100)}${p2}/`;
|
|
3172
|
+
});
|
|
3173
|
+
};
|
|
3174
|
+
|
|
3164
3175
|
const parseJSON = (prop) => {
|
|
3165
3176
|
if (typeof prop === 'string') {
|
|
3166
3177
|
try {
|
|
@@ -3461,6 +3472,11 @@ const textSmallStyle = {
|
|
|
3461
3472
|
...fontHyphenationStyle,
|
|
3462
3473
|
};
|
|
3463
3474
|
|
|
3475
|
+
const textMediumStyle = {
|
|
3476
|
+
font: `${_textFontPartA}${fontSizeTextMedium}${_textFontPartB}`,
|
|
3477
|
+
...fontHyphenationStyle,
|
|
3478
|
+
};
|
|
3479
|
+
|
|
3464
3480
|
const textLargeStyle = {
|
|
3465
3481
|
font: `${_textFontPartA}${fontSizeTextLarge}${_textFontPartB}`,
|
|
3466
3482
|
...fontHyphenationStyle,
|
|
@@ -3477,6 +3493,7 @@ const themeLight = {
|
|
|
3477
3493
|
backgroundSurfaceColorDarken: '#CBCED7',
|
|
3478
3494
|
backgroundSurfaceColorLighten: '#FFFFFF',
|
|
3479
3495
|
backgroundShadingColor: 'rgba(1, 2, 5, 0.67)',
|
|
3496
|
+
backgroundFrostedColor: 'hsl(240 4% 85%/35%)',
|
|
3480
3497
|
contrastLowColor: '#D8D8DB',
|
|
3481
3498
|
contrastMediumColor: '#6B6D70',
|
|
3482
3499
|
contrastHighColor: '#535457',
|
|
@@ -3516,6 +3533,7 @@ const themeDark = {
|
|
|
3516
3533
|
backgroundSurfaceColorDarken: '#040405',
|
|
3517
3534
|
backgroundSurfaceColorLighten: '#3E4045',
|
|
3518
3535
|
backgroundShadingColor: 'rgba(38, 38, 41, 0.67)',
|
|
3536
|
+
backgroundFrostedColor: 'hsl(240 3% 26%/35%)',
|
|
3519
3537
|
contrastLowColor: '#404044',
|
|
3520
3538
|
contrastMediumColor: '#88898C',
|
|
3521
3539
|
contrastHighColor: '#AFB0B3',
|
|
@@ -3848,185 +3866,12 @@ hasWindow &&
|
|
|
3848
3866
|
}
|
|
3849
3867
|
});
|
|
3850
3868
|
|
|
3851
|
-
/* eslint-disable no-undefined,no-param-reassign,no-shadow */
|
|
3852
|
-
|
|
3853
|
-
/**
|
|
3854
|
-
* Throttle execution of a function. Especially useful for rate limiting
|
|
3855
|
-
* execution of handlers on events like resize and scroll.
|
|
3856
|
-
*
|
|
3857
|
-
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)
|
|
3858
|
-
* are most useful.
|
|
3859
|
-
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,
|
|
3860
|
-
* as-is, to `callback` when the throttled-function is executed.
|
|
3861
|
-
* @param {object} [options] - An object to configure options.
|
|
3862
|
-
* @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds
|
|
3863
|
-
* while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed
|
|
3864
|
-
* one final time after the last throttled-function call. (After the throttled-function has not been called for
|
|
3865
|
-
* `delay` milliseconds, the internal counter is reset).
|
|
3866
|
-
* @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback
|
|
3867
|
-
* immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that
|
|
3868
|
-
* callback will never executed if both noLeading = true and noTrailing = true.
|
|
3869
|
-
* @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is
|
|
3870
|
-
* false (at end), schedule `callback` to execute after `delay` ms.
|
|
3871
|
-
*
|
|
3872
|
-
* @returns {Function} A new, throttled, function.
|
|
3873
|
-
*/
|
|
3874
|
-
function throttle (delay, callback, options) {
|
|
3875
|
-
var _ref = options || {},
|
|
3876
|
-
_ref$noTrailing = _ref.noTrailing,
|
|
3877
|
-
noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,
|
|
3878
|
-
_ref$noLeading = _ref.noLeading,
|
|
3879
|
-
noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,
|
|
3880
|
-
_ref$debounceMode = _ref.debounceMode,
|
|
3881
|
-
debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;
|
|
3882
|
-
/*
|
|
3883
|
-
* After wrapper has stopped being called, this timeout ensures that
|
|
3884
|
-
* `callback` is executed at the proper times in `throttle` and `end`
|
|
3885
|
-
* debounce modes.
|
|
3886
|
-
*/
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
var timeoutID;
|
|
3890
|
-
var cancelled = false; // Keep track of the last time `callback` was executed.
|
|
3891
|
-
|
|
3892
|
-
var lastExec = 0; // Function to clear existing timeout
|
|
3893
|
-
|
|
3894
|
-
function clearExistingTimeout() {
|
|
3895
|
-
if (timeoutID) {
|
|
3896
|
-
clearTimeout(timeoutID);
|
|
3897
|
-
}
|
|
3898
|
-
} // Function to cancel next exec
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
function cancel(options) {
|
|
3902
|
-
var _ref2 = options || {},
|
|
3903
|
-
_ref2$upcomingOnly = _ref2.upcomingOnly,
|
|
3904
|
-
upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
|
3905
|
-
|
|
3906
|
-
clearExistingTimeout();
|
|
3907
|
-
cancelled = !upcomingOnly;
|
|
3908
|
-
}
|
|
3909
|
-
/*
|
|
3910
|
-
* The `wrapper` function encapsulates all of the throttling / debouncing
|
|
3911
|
-
* functionality and when executed will limit the rate at which `callback`
|
|
3912
|
-
* is executed.
|
|
3913
|
-
*/
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
function wrapper() {
|
|
3917
|
-
for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3918
|
-
arguments_[_key] = arguments[_key];
|
|
3919
|
-
}
|
|
3920
|
-
|
|
3921
|
-
var self = this;
|
|
3922
|
-
var elapsed = Date.now() - lastExec;
|
|
3923
|
-
|
|
3924
|
-
if (cancelled) {
|
|
3925
|
-
return;
|
|
3926
|
-
} // Execute `callback` and update the `lastExec` timestamp.
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
function exec() {
|
|
3930
|
-
lastExec = Date.now();
|
|
3931
|
-
callback.apply(self, arguments_);
|
|
3932
|
-
}
|
|
3933
|
-
/*
|
|
3934
|
-
* If `debounceMode` is true (at begin) this is used to clear the flag
|
|
3935
|
-
* to allow future `callback` executions.
|
|
3936
|
-
*/
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
function clear() {
|
|
3940
|
-
timeoutID = undefined;
|
|
3941
|
-
}
|
|
3942
|
-
|
|
3943
|
-
if (!noLeading && debounceMode && !timeoutID) {
|
|
3944
|
-
/*
|
|
3945
|
-
* Since `wrapper` is being called for the first time and
|
|
3946
|
-
* `debounceMode` is true (at begin), execute `callback`
|
|
3947
|
-
* and noLeading != true.
|
|
3948
|
-
*/
|
|
3949
|
-
exec();
|
|
3950
|
-
}
|
|
3951
|
-
|
|
3952
|
-
clearExistingTimeout();
|
|
3953
|
-
|
|
3954
|
-
if (debounceMode === undefined && elapsed > delay) {
|
|
3955
|
-
if (noLeading) {
|
|
3956
|
-
/*
|
|
3957
|
-
* In throttle mode with noLeading, if `delay` time has
|
|
3958
|
-
* been exceeded, update `lastExec` and schedule `callback`
|
|
3959
|
-
* to execute after `delay` ms.
|
|
3960
|
-
*/
|
|
3961
|
-
lastExec = Date.now();
|
|
3962
|
-
|
|
3963
|
-
if (!noTrailing) {
|
|
3964
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, delay);
|
|
3965
|
-
}
|
|
3966
|
-
} else {
|
|
3967
|
-
/*
|
|
3968
|
-
* In throttle mode without noLeading, if `delay` time has been exceeded, execute
|
|
3969
|
-
* `callback`.
|
|
3970
|
-
*/
|
|
3971
|
-
exec();
|
|
3972
|
-
}
|
|
3973
|
-
} else if (noTrailing !== true) {
|
|
3974
|
-
/*
|
|
3975
|
-
* In trailing throttle mode, since `delay` time has not been
|
|
3976
|
-
* exceeded, schedule `callback` to execute `delay` ms after most
|
|
3977
|
-
* recent execution.
|
|
3978
|
-
*
|
|
3979
|
-
* If `debounceMode` is true (at begin), schedule `clear` to execute
|
|
3980
|
-
* after `delay` ms.
|
|
3981
|
-
*
|
|
3982
|
-
* If `debounceMode` is false (at end), schedule `callback` to
|
|
3983
|
-
* execute after `delay` ms.
|
|
3984
|
-
*/
|
|
3985
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
|
3986
|
-
}
|
|
3987
|
-
}
|
|
3988
|
-
|
|
3989
|
-
wrapper.cancel = cancel; // Return the wrapper function.
|
|
3990
|
-
|
|
3991
|
-
return wrapper;
|
|
3992
|
-
}
|
|
3993
|
-
|
|
3994
|
-
/* eslint-disable no-undefined */
|
|
3995
|
-
/**
|
|
3996
|
-
* Debounce execution of a function. Debouncing, unlike throttling,
|
|
3997
|
-
* guarantees that a function is only executed a single time, either at the
|
|
3998
|
-
* very beginning of a series of calls, or at the very end.
|
|
3999
|
-
*
|
|
4000
|
-
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
4001
|
-
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
|
|
4002
|
-
* to `callback` when the debounced-function is executed.
|
|
4003
|
-
* @param {object} [options] - An object to configure options.
|
|
4004
|
-
* @param {boolean} [options.atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
|
|
4005
|
-
* after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
|
|
4006
|
-
* (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
|
|
4007
|
-
*
|
|
4008
|
-
* @returns {Function} A new, debounced function.
|
|
4009
|
-
*/
|
|
4010
|
-
|
|
4011
|
-
function debounce (delay, callback, options) {
|
|
4012
|
-
var _ref = options || {},
|
|
4013
|
-
_ref$atBegin = _ref.atBegin,
|
|
4014
|
-
atBegin = _ref$atBegin === void 0 ? false : _ref$atBegin;
|
|
4015
|
-
|
|
4016
|
-
return throttle(delay, callback, {
|
|
4017
|
-
debounceMode: atBegin !== false
|
|
4018
|
-
});
|
|
4019
|
-
}
|
|
4020
|
-
|
|
4021
|
-
debounce(800, (el, ariaElement) => {
|
|
4022
|
-
ariaElement.innerText = `You have ${el.maxLength - el.value.length} out of ${el.maxLength} characters left`;
|
|
4023
|
-
});
|
|
4024
|
-
|
|
4025
3869
|
const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
|
|
4026
3870
|
|
|
4027
|
-
|
|
3871
|
+
// index.ts
|
|
3872
|
+
var MODEL_SIGNATURES_MANIFEST = { "718": { "src": "718.493a9e3.svg", "width": 79, "height": 26 }, "911": { "src": "911.b68f913.svg", "width": 94, "height": 25 }, "boxster": { "src": "boxster.c321738.svg", "width": 239, "height": 26 }, "cayenne": { "src": "cayenne.2556201.svg", "width": 245, "height": 35 }, "cayman": { "src": "cayman.cc89196.svg", "width": 229, "height": 35 }, "macan": { "src": "macan.a1844f4.svg", "width": 196, "height": 26 }, "panamera": { "src": "panamera.6dae809.svg", "width": 260, "height": 25 }, "taycan": { "src": "taycan.df444c6.svg", "width": 167, "height": 36 }, "turbo-s": { "src": "turbo-s.73f1e10.svg", "width": 199, "height": 25 }, "turbo": { "src": "turbo.6a4084a.svg", "width": 143, "height": 25 } };
|
|
4028
3873
|
|
|
4029
|
-
const OPTION_HEIGHT = 40;
|
|
3874
|
+
const OPTION_HEIGHT = 40;
|
|
4030
3875
|
const MULTI_SELECT_OPTION_HEIGHT = 44;
|
|
4031
3876
|
const getNoResultsOptionJssStyle = () => ({
|
|
4032
3877
|
'&[role=status]': {
|
|
@@ -4086,7 +3931,7 @@ const formatObjectOutput = (value) => {
|
|
|
4086
3931
|
'value, ' +
|
|
4087
3932
|
formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {})).replace(/"/g, '');
|
|
4088
3933
|
|
|
4089
|
-
const getComponentCss$
|
|
3934
|
+
const getComponentCss$17 = (size, compact, open, theme, sticky) => {
|
|
4090
3935
|
const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
|
|
4091
3936
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
|
|
4092
3937
|
const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
|
|
@@ -4255,7 +4100,7 @@ const cssVariableTop = '--p-banner-position-top';
|
|
|
4255
4100
|
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4256
4101
|
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4257
4102
|
const topBottomFallback = '56px';
|
|
4258
|
-
const getComponentCss$
|
|
4103
|
+
const getComponentCss$16 = (isOpen) => {
|
|
4259
4104
|
return getCss({
|
|
4260
4105
|
'@global': {
|
|
4261
4106
|
':host': {
|
|
@@ -4326,7 +4171,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4326
4171
|
return groupDirectionJssStyles[direction];
|
|
4327
4172
|
};
|
|
4328
4173
|
|
|
4329
|
-
const getComponentCss$
|
|
4174
|
+
const getComponentCss$15 = (direction) => {
|
|
4330
4175
|
return getCss({
|
|
4331
4176
|
'@global': {
|
|
4332
4177
|
':host': {
|
|
@@ -4369,7 +4214,6 @@ const getVisibilityJssStyle = (hideLabel) => {
|
|
|
4369
4214
|
: {
|
|
4370
4215
|
whiteSpace: 'inherit',
|
|
4371
4216
|
textIndent: 0,
|
|
4372
|
-
zIndex: 1, // fix Firefox bug on :hover (#2583)
|
|
4373
4217
|
overflow: 'visible',
|
|
4374
4218
|
};
|
|
4375
4219
|
};
|
|
@@ -4459,7 +4303,8 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4459
4303
|
height: `round(down, ${fontLineHeight}, 1px)`,
|
|
4460
4304
|
},
|
|
4461
4305
|
},
|
|
4462
|
-
label: mergeDeep(
|
|
4306
|
+
label: mergeDeep({ zIndex: '1' }, // fix Firefox bug on :hover (#2583) & pure-link with nested anchor & hidden label (#3349)
|
|
4307
|
+
buildResponsiveStyles(hideLabel, getVisibilityJssStyle), buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
|
|
4463
4308
|
// TODO: we should remove 'left' here and map the value in the component class already to 'start' but might be difficult due to breakpoint customizable prop value
|
|
4464
4309
|
order: alignLabelValue === 'left' || alignLabelValue === 'start' ? -1 : 0,
|
|
4465
4310
|
}))),
|
|
@@ -4478,7 +4323,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
|
|
|
4478
4323
|
};
|
|
4479
4324
|
};
|
|
4480
4325
|
|
|
4481
|
-
const getComponentCss$
|
|
4326
|
+
const getComponentCss$14 = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
|
|
4482
4327
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4483
4328
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
|
|
4484
4329
|
root: {
|
|
@@ -4516,157 +4361,136 @@ const getFontWeight = (weight) => {
|
|
|
4516
4361
|
return fontWeightMap[weight];
|
|
4517
4362
|
};
|
|
4518
4363
|
|
|
4519
|
-
const
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
const colorMap = {
|
|
4523
|
-
primary: themedColors.primaryColor,
|
|
4524
|
-
default: themedColors.primaryColor, // deprecated but part of HeadlineColor
|
|
4525
|
-
'contrast-low': themedColors.contrastLowColor,
|
|
4526
|
-
'contrast-medium': themedColors.contrastMediumColor,
|
|
4527
|
-
'contrast-high': themedColors.contrastHighColor,
|
|
4528
|
-
'notification-success': themedColors.successColor,
|
|
4529
|
-
'notification-warning': themedColors.warningColor,
|
|
4530
|
-
'notification-error': themedColors.errorColor,
|
|
4531
|
-
'notification-info': themedColors.infoColor,
|
|
4532
|
-
inherit: 'currentColor',
|
|
4533
|
-
};
|
|
4534
|
-
return colorMap[textColor];
|
|
4535
|
-
};
|
|
4536
|
-
|
|
4537
|
-
const aspectRatioPaddingMap = {
|
|
4538
|
-
'1:1': '100%',
|
|
4539
|
-
'4:3': '75%',
|
|
4540
|
-
'3:4': '133.33%',
|
|
4541
|
-
'16:9': '56.25%',
|
|
4542
|
-
'9:16': '177.75%',
|
|
4543
|
-
};
|
|
4544
|
-
const getTileBaseStyles = (aspectRatio, isDisabled) => {
|
|
4545
|
-
return {
|
|
4364
|
+
const getComponentCss$13 = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
|
|
4365
|
+
const isTopAligned = align === 'top';
|
|
4366
|
+
return getCss({
|
|
4546
4367
|
'@global': {
|
|
4547
4368
|
':host': {
|
|
4548
|
-
display: 'block',
|
|
4549
|
-
hyphens: 'auto',
|
|
4369
|
+
display: 'block', // `display: flex` would be more ideal, but doesn't work in Safari in all cases
|
|
4370
|
+
hyphens: 'auto', // TODO: shouldn't we expose a CSS variable instead?
|
|
4550
4371
|
...addImportantToEachRule({
|
|
4551
4372
|
...colorSchemeStyles,
|
|
4552
4373
|
...hostHiddenStyles,
|
|
4553
4374
|
}),
|
|
4554
4375
|
},
|
|
4555
|
-
|
|
4556
|
-
'
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
},
|
|
4376
|
+
slot: {
|
|
4377
|
+
display: 'block',
|
|
4378
|
+
'&:not([name])': {
|
|
4379
|
+
width: '100%',
|
|
4380
|
+
height: '100%',
|
|
4381
|
+
transition: getTransition('transform', 'moderate'),
|
|
4382
|
+
},
|
|
4383
|
+
'&[name="header"]': {
|
|
4384
|
+
gridArea: `${isTopAligned ? 4 : 2}/2`,
|
|
4385
|
+
zIndex: 3,
|
|
4566
4386
|
},
|
|
4387
|
+
},
|
|
4388
|
+
'::slotted(:is(img,picture))': addImportantToEachRule({
|
|
4389
|
+
display: 'block',
|
|
4390
|
+
width: '100%',
|
|
4391
|
+
height: '100%',
|
|
4567
4392
|
}),
|
|
4393
|
+
'::slotted(img)': addImportantToEachRule({
|
|
4394
|
+
objectFit: 'cover',
|
|
4395
|
+
}),
|
|
4396
|
+
a: {
|
|
4397
|
+
gridArea: '1/1/-1 /-1',
|
|
4398
|
+
zIndex: 4,
|
|
4399
|
+
outline: 0, // reset focus style since this element is used to improve mouse interaction only
|
|
4400
|
+
},
|
|
4401
|
+
p: {
|
|
4402
|
+
...textMediumStyle,
|
|
4403
|
+
zIndex: 3,
|
|
4404
|
+
margin: 0, // reset ua-style
|
|
4405
|
+
maxWidth: '34.375rem',
|
|
4406
|
+
hyphens: 'inherit',
|
|
4407
|
+
...mergeDeep(buildResponsiveStyles(size, (sizeValue) => ({
|
|
4408
|
+
fontSize: getFontSizeText(sizeValue === 'default' ? 'medium' : sizeValue), // mapping of the deprecated size 'default'
|
|
4409
|
+
})), buildResponsiveStyles(weight, (weightValue) => ({
|
|
4410
|
+
fontWeight: getFontWeight(weightValue),
|
|
4411
|
+
})), buildResponsiveStyles(background, (backgroundValue) => ({
|
|
4412
|
+
color: getThemedColors(backgroundValue).primaryColor,
|
|
4413
|
+
}))),
|
|
4414
|
+
},
|
|
4568
4415
|
},
|
|
4569
4416
|
root: {
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
transform: 'translate3d(0,0,0)', // change stacking context for position fixed
|
|
4573
|
-
borderRadius: borderRadiusLarge,
|
|
4574
|
-
color: getThemedTypographyColor('dark', 'primary'),
|
|
4575
|
-
...buildResponsiveStyles(aspectRatio, (ratio) => ({
|
|
4576
|
-
paddingTop: aspectRatioPaddingMap[ratio],
|
|
4417
|
+
...buildResponsiveStyles(aspectRatio, (aspectRatioValue) => ({
|
|
4418
|
+
aspectRatio: aspectRatioValue.replace(':', '/'), // mapping of the deprecated aspect-ratio with ':'
|
|
4577
4419
|
})),
|
|
4420
|
+
cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
|
|
4421
|
+
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
4422
|
+
height: '100%', // necessary in case tile content overflows in grid or flex context
|
|
4423
|
+
display: 'grid',
|
|
4424
|
+
gridTemplate: `${spacingFluidMedium} auto minmax(0px, 1fr) auto ${spacingFluidMedium}/${spacingFluidMedium} minmax(0px, 1fr) ${spacingFluidMedium}`,
|
|
4425
|
+
...(hasGradient &&
|
|
4426
|
+
isThemeDark(background) && {
|
|
4427
|
+
'&::after': {
|
|
4428
|
+
content: '""',
|
|
4429
|
+
zIndex: 2,
|
|
4430
|
+
...(isTopAligned
|
|
4431
|
+
? {
|
|
4432
|
+
gridArea: '1/1/3/-1',
|
|
4433
|
+
...gradientToBottomStyle,
|
|
4434
|
+
marginBottom: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
4435
|
+
borderStartStartRadius: borderRadiusLarge,
|
|
4436
|
+
borderStartEndRadius: borderRadiusLarge,
|
|
4437
|
+
}
|
|
4438
|
+
: {
|
|
4439
|
+
gridArea: '4/1/6/-1',
|
|
4440
|
+
...gradientToTopStyle,
|
|
4441
|
+
marginTop: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
4442
|
+
borderEndStartRadius: borderRadiusLarge,
|
|
4443
|
+
borderEndEndRadius: borderRadiusLarge,
|
|
4444
|
+
}),
|
|
4445
|
+
...forcedColorsMediaQuery({
|
|
4446
|
+
background: 'rgba(0,0,0,0.7)',
|
|
4447
|
+
}),
|
|
4448
|
+
},
|
|
4449
|
+
}),
|
|
4578
4450
|
...(!isDisabled &&
|
|
4579
4451
|
hoverMediaQuery({
|
|
4580
|
-
'&:hover
|
|
4452
|
+
'&:hover slot:not([name])': {
|
|
4581
4453
|
transform: 'scale3d(1.05,1.05,1.05)',
|
|
4582
4454
|
},
|
|
4583
4455
|
})),
|
|
4584
4456
|
},
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4457
|
+
media: {
|
|
4458
|
+
gridArea: '1/1/-1 /-1',
|
|
4459
|
+
zIndex: 1,
|
|
4460
|
+
overflow: 'hidden', // relevant for scaling of nested image
|
|
4461
|
+
borderRadius: borderRadiusLarge,
|
|
4589
4462
|
},
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
left: 0,
|
|
4593
|
-
right: 0,
|
|
4463
|
+
footer: {
|
|
4464
|
+
gridArea: `${isTopAligned ? 2 : 4}/2`,
|
|
4594
4465
|
display: 'flex',
|
|
4595
|
-
justifyItems: 'start',
|
|
4596
4466
|
gap: spacingStaticMedium,
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
background: 'rgba(0,0,0,0.7)',
|
|
4600
|
-
},
|
|
4601
|
-
},
|
|
4602
|
-
};
|
|
4603
|
-
};
|
|
4604
|
-
|
|
4605
|
-
const sizeMap$5 = {
|
|
4606
|
-
inherit: { fontSize: 'inherit' },
|
|
4607
|
-
default: { fontSize: fontSizeTextMedium },
|
|
4608
|
-
};
|
|
4609
|
-
const getButtonLinkTileStyles = (aspectRatio, size, weight, // to get deprecated semibold typed
|
|
4610
|
-
background, align, compact, hasGradient, isDisabled) => {
|
|
4611
|
-
const isTopAligned = align === 'top';
|
|
4612
|
-
return mergeDeep(getTileBaseStyles(aspectRatio, isDisabled), {
|
|
4613
|
-
'@global': {
|
|
4614
|
-
p: {
|
|
4615
|
-
maxWidth: '34.375rem', // in this case rem unit makes sense to scale up available space
|
|
4616
|
-
margin: 0,
|
|
4617
|
-
...textLargeStyle,
|
|
4618
|
-
hyphens: 'inherit',
|
|
4619
|
-
...mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$5[s]), buildResponsiveStyles(weight, (w) => ({
|
|
4620
|
-
fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w), // mapping of the deprecated weight semibold
|
|
4621
|
-
}))),
|
|
4622
|
-
...buildResponsiveStyles(background, (b) => ({
|
|
4623
|
-
color: getThemedColors(b).primaryColor,
|
|
4624
|
-
})),
|
|
4625
|
-
},
|
|
4626
|
-
},
|
|
4627
|
-
content: {
|
|
4628
|
-
display: 'grid', // TODO: flex via getTileBaseStyles
|
|
4629
|
-
...(isTopAligned ? { top: 0 } : { bottom: 0 }),
|
|
4630
|
-
padding: isTopAligned
|
|
4631
|
-
? `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`
|
|
4632
|
-
: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}`,
|
|
4633
|
-
...mergeDeep(hasGradient &&
|
|
4634
|
-
isThemeDark(background) &&
|
|
4635
|
-
buildResponsiveStyles(compact, (isCompact) => isCompact && isTopAligned ? gradientToBottomStyle : gradientToTopStyle), buildResponsiveStyles(compact, (isCompact) => isCompact // TODO: use flex
|
|
4467
|
+
justifyContent: 'space-between',
|
|
4468
|
+
...buildResponsiveStyles(compact, (compactValue) => compactValue
|
|
4636
4469
|
? {
|
|
4637
4470
|
alignItems: 'center',
|
|
4638
|
-
|
|
4639
|
-
gridTemplateRows: 'auto',
|
|
4640
|
-
...(isTopAligned ? { top: 0 } : { bottom: 0 }),
|
|
4471
|
+
flexDirection: 'row',
|
|
4641
4472
|
}
|
|
4642
4473
|
: {
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
})
|
|
4474
|
+
alignItems: 'flex-start',
|
|
4475
|
+
flexDirection: 'column',
|
|
4476
|
+
}),
|
|
4477
|
+
},
|
|
4478
|
+
'link-or-button-pure': {
|
|
4479
|
+
zIndex: 5,
|
|
4480
|
+
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
4481
|
+
display: compactValue ? 'inline-block' : 'none',
|
|
4482
|
+
})),
|
|
4646
4483
|
},
|
|
4647
|
-
'link-or-button-pure': buildResponsiveStyles(compact, (isCompact) => ({
|
|
4648
|
-
display: isCompact ? 'inline-block' : 'none',
|
|
4649
|
-
})),
|
|
4650
4484
|
'link-or-button': {
|
|
4651
4485
|
minHeight: '54px', // prevent content shift
|
|
4652
|
-
|
|
4653
|
-
|
|
4486
|
+
zIndex: 5,
|
|
4487
|
+
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
4488
|
+
display: compactValue ? 'none' : 'inline-block',
|
|
4654
4489
|
})),
|
|
4655
4490
|
},
|
|
4656
4491
|
});
|
|
4657
4492
|
};
|
|
4658
4493
|
|
|
4659
|
-
const getComponentCss$12 = (isDisabledOrLoading, ...args) => {
|
|
4660
|
-
const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
|
|
4661
|
-
return getCss({
|
|
4662
|
-
...buttonLinkTileStyles,
|
|
4663
|
-
root: {
|
|
4664
|
-
...buttonLinkTileStyles.root,
|
|
4665
|
-
cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
|
|
4666
|
-
},
|
|
4667
|
-
});
|
|
4668
|
-
};
|
|
4669
|
-
|
|
4670
4494
|
const { primaryColor: darkThemePrimaryColor } = getThemedColors('dark');
|
|
4671
4495
|
const { primaryColor: lightThemePrimaryColor } = getThemedColors('light');
|
|
4672
4496
|
const getVariantColors = (variant, theme) => {
|
|
@@ -4780,7 +4604,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4780
4604
|
};
|
|
4781
4605
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4782
4606
|
};
|
|
4783
|
-
const getComponentCss$
|
|
4607
|
+
const getComponentCss$12 = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
|
|
4784
4608
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4785
4609
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4786
4610
|
const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
|
|
@@ -4844,7 +4668,7 @@ const sidebarWidths = {
|
|
|
4844
4668
|
medium: '320px',
|
|
4845
4669
|
large: '480px', // TODO: won't work at viewport 1000px when both sidebars are opened
|
|
4846
4670
|
};
|
|
4847
|
-
const getComponentCss$
|
|
4671
|
+
const getComponentCss$11 = (isSidebarStartOpen, sidebarStartWidth, isSidebarEndOpen, sidebarEndWidth) => {
|
|
4848
4672
|
return getCss({
|
|
4849
4673
|
'@global': {
|
|
4850
4674
|
':host': {
|
|
@@ -4953,7 +4777,7 @@ const backfaceVisibilityJssStyle = {
|
|
|
4953
4777
|
backfaceVisibility: 'hidden',
|
|
4954
4778
|
WebkitBackfaceVisibility: 'hidden',
|
|
4955
4779
|
};
|
|
4956
|
-
const getComponentCss
|
|
4780
|
+
const getComponentCss$10 = (hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation) => {
|
|
4957
4781
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
4958
4782
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
4959
4783
|
const { canvasTextColor } = getHighContrastColors();
|
|
@@ -4976,6 +4800,10 @@ const getComponentCss$$ = (hasHeading, hasDescription, hasControlsSlot, headingS
|
|
|
4976
4800
|
gridColumnStart: 1,
|
|
4977
4801
|
gridRowStart: 3,
|
|
4978
4802
|
alignSelf: 'center', // ensures vertical alignment to prev/next buttons
|
|
4803
|
+
...(isHeaderAlignCenter &&
|
|
4804
|
+
!hasNavigation && {
|
|
4805
|
+
justifySelf: 'center',
|
|
4806
|
+
}),
|
|
4979
4807
|
},
|
|
4980
4808
|
}),
|
|
4981
4809
|
...addImportantToEachRule({
|
|
@@ -5026,8 +4854,8 @@ const getComponentCss$$ = (hasHeading, hasDescription, hasControlsSlot, headingS
|
|
|
5026
4854
|
padding: `0 ${spacingMap[width].base}`,
|
|
5027
4855
|
[mediaQueryS]: {
|
|
5028
4856
|
gridTemplateColumns: 'minmax(0px, 1fr) auto',
|
|
5029
|
-
columnGap: spacingStaticMedium,
|
|
5030
4857
|
padding: `0 ${spacingMap[width].s}`,
|
|
4858
|
+
...(hasNavigation && { columnGap: spacingStaticMedium }),
|
|
5031
4859
|
},
|
|
5032
4860
|
[mediaQueryXXL]: {
|
|
5033
4861
|
padding: `0 ${spacingMap[width].xxl}`,
|
|
@@ -5089,6 +4917,14 @@ const getComponentCss$$ = (hasHeading, hasDescription, hasControlsSlot, headingS
|
|
|
5089
4917
|
transform: 'translateZ(0)', // fixes mobile safari flickering, https://github.com/nolimits4web/swiper/issues/3527#issuecomment-609088939
|
|
5090
4918
|
},
|
|
5091
4919
|
'&__sr': getHiddenTextJssStyle(), // appears in the DOM when sliding
|
|
4920
|
+
...(isHeaderAlignCenter && {
|
|
4921
|
+
'&:not(.is-overflow) .splide__list': {
|
|
4922
|
+
justifyContent: 'center',
|
|
4923
|
+
},
|
|
4924
|
+
'&:not(.is-overflow) .splide__slide:last-child': {
|
|
4925
|
+
marginInlineEnd: addImportantToRule('0'),
|
|
4926
|
+
},
|
|
4927
|
+
}),
|
|
5092
4928
|
},
|
|
5093
4929
|
...(hasPagination && {
|
|
5094
4930
|
'pagination-container': {
|
|
@@ -5372,7 +5208,7 @@ const getCheckedSVGBackgroundImage$1 = (fill) => {
|
|
|
5372
5208
|
const getIndeterminateSVGBackgroundImage = (fill) => {
|
|
5373
5209
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5374
5210
|
};
|
|
5375
|
-
const getComponentCss
|
|
5211
|
+
const getComponentCss$$ = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
5376
5212
|
const { canvasColor } = getHighContrastColors();
|
|
5377
5213
|
const checkedIconColor = isHighContrastMode
|
|
5378
5214
|
? canvasColor
|
|
@@ -5467,7 +5303,7 @@ const widthMap = {
|
|
|
5467
5303
|
basic: gridBasicOffset,
|
|
5468
5304
|
extended: gridExtendedOffset,
|
|
5469
5305
|
};
|
|
5470
|
-
const getComponentCss$
|
|
5306
|
+
const getComponentCss$_ = (width) => {
|
|
5471
5307
|
return getCss({
|
|
5472
5308
|
'@global': {
|
|
5473
5309
|
':host': {
|
|
@@ -5509,7 +5345,7 @@ const getDimensionStyle = {
|
|
|
5509
5345
|
width: 'inherit',
|
|
5510
5346
|
height: 'inherit',
|
|
5511
5347
|
};
|
|
5512
|
-
const getComponentCss$
|
|
5348
|
+
const getComponentCss$Z = () => {
|
|
5513
5349
|
return getCss({
|
|
5514
5350
|
'@global': {
|
|
5515
5351
|
':host': {
|
|
@@ -5555,6 +5391,24 @@ const getComponentCss$Y = () => {
|
|
|
5555
5391
|
|
|
5556
5392
|
const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
5557
5393
|
|
|
5394
|
+
const getThemedTypographyColor = (theme, textColor // eslint-disable-line @typescript-eslint/no-duplicate-type-constituents
|
|
5395
|
+
) => {
|
|
5396
|
+
const themedColors = getThemedColors(theme);
|
|
5397
|
+
const colorMap = {
|
|
5398
|
+
primary: themedColors.primaryColor,
|
|
5399
|
+
default: themedColors.primaryColor, // deprecated but part of HeadlineColor
|
|
5400
|
+
'contrast-low': themedColors.contrastLowColor,
|
|
5401
|
+
'contrast-medium': themedColors.contrastMediumColor,
|
|
5402
|
+
'contrast-high': themedColors.contrastHighColor,
|
|
5403
|
+
'notification-success': themedColors.successColor,
|
|
5404
|
+
'notification-warning': themedColors.warningColor,
|
|
5405
|
+
'notification-error': themedColors.errorColor,
|
|
5406
|
+
'notification-info': themedColors.infoColor,
|
|
5407
|
+
inherit: 'currentColor',
|
|
5408
|
+
};
|
|
5409
|
+
return colorMap[textColor];
|
|
5410
|
+
};
|
|
5411
|
+
|
|
5558
5412
|
const getTypographyRootJssStyle = (baseTextStyle, responsiveStyle, align, // eslint-disable-line @typescript-eslint/no-duplicate-type-constituents
|
|
5559
5413
|
color, // eslint-disable-line @typescript-eslint/no-duplicate-type-constituents
|
|
5560
5414
|
ellipsis, theme) => {
|
|
@@ -5590,7 +5444,7 @@ const sizeMap$4 = {
|
|
|
5590
5444
|
medium: fontSizeDisplayMedium,
|
|
5591
5445
|
large: fontSizeDisplayLarge,
|
|
5592
5446
|
};
|
|
5593
|
-
const getComponentCss$
|
|
5447
|
+
const getComponentCss$Y = (size, align, color, ellipsis, theme) => {
|
|
5594
5448
|
return getCss({
|
|
5595
5449
|
'@global': {
|
|
5596
5450
|
':host': {
|
|
@@ -5608,7 +5462,7 @@ const getComponentCss$X = (size, align, color, ellipsis, theme) => {
|
|
|
5608
5462
|
});
|
|
5609
5463
|
};
|
|
5610
5464
|
|
|
5611
|
-
const getComponentCss$
|
|
5465
|
+
const getComponentCss$X = (color, orientation, theme) => {
|
|
5612
5466
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
5613
5467
|
const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
|
|
5614
5468
|
const colorMap = {
|
|
@@ -5651,7 +5505,7 @@ const getComponentCss$W = (color, orientation, theme) => {
|
|
|
5651
5505
|
});
|
|
5652
5506
|
};
|
|
5653
5507
|
|
|
5654
|
-
const getComponentCss$
|
|
5508
|
+
const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
|
|
5655
5509
|
return getCss({
|
|
5656
5510
|
'@global': {
|
|
5657
5511
|
':host': {
|
|
@@ -5687,7 +5541,7 @@ const getComponentCss$V = (state, labelSize, hasLabel, theme) => {
|
|
|
5687
5541
|
});
|
|
5688
5542
|
};
|
|
5689
5543
|
|
|
5690
|
-
const getComponentCss$
|
|
5544
|
+
const getComponentCss$V = (state, labelSize, hasLabel, theme) => {
|
|
5691
5545
|
return getCss({
|
|
5692
5546
|
'@global': {
|
|
5693
5547
|
':host': {
|
|
@@ -5733,7 +5587,7 @@ const flexItemWidths = {
|
|
|
5733
5587
|
full: 100,
|
|
5734
5588
|
auto: 'auto',
|
|
5735
5589
|
};
|
|
5736
|
-
const getComponentCss$
|
|
5590
|
+
const getComponentCss$U = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
5737
5591
|
return getCss({
|
|
5738
5592
|
'@global': {
|
|
5739
5593
|
':host': addImportantToEachRule({
|
|
@@ -5755,7 +5609,7 @@ const getComponentCss$T = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
5755
5609
|
});
|
|
5756
5610
|
};
|
|
5757
5611
|
|
|
5758
|
-
const getComponentCss$
|
|
5612
|
+
const getComponentCss$T = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
5759
5613
|
return getCss({
|
|
5760
5614
|
'@global': {
|
|
5761
5615
|
':host': {
|
|
@@ -5796,7 +5650,7 @@ const frostedGlassBackgroundColorLight$1 = 'rgba(255, 255, 255, 0.79)';
|
|
|
5796
5650
|
const frostedGlassBackgroundColorDark$1 = 'rgba(14, 14, 18, 0.79)';
|
|
5797
5651
|
const scrollerWidthEnhancedView = 'clamp(338px, 10.52vw + 258px, 460px)';
|
|
5798
5652
|
const mediaQueryEnhancedView = getMediaQueryMin('s');
|
|
5799
|
-
const getComponentCss$
|
|
5653
|
+
const getComponentCss$S = (isPrimaryScrollerVisible, isSecondaryScrollerVisible, theme) => {
|
|
5800
5654
|
const { backgroundColor } = getThemedColors(theme);
|
|
5801
5655
|
const { backgroundColor: backgroundColorDark } = getThemedColors('dark');
|
|
5802
5656
|
const frostedGlassBackgroundColor = isThemeDark(theme)
|
|
@@ -5935,7 +5789,7 @@ const getContentJssStyle = () => {
|
|
|
5935
5789
|
|
|
5936
5790
|
const frostedGlassBackgroundColorLight = 'rgba(238, 239, 242, 0.79)';
|
|
5937
5791
|
const frostedGlassBackgroundColorDark = 'rgba(33, 34, 37, 0.79)';
|
|
5938
|
-
const getComponentCss$
|
|
5792
|
+
const getComponentCss$R = (isSecondaryScrollerVisible, theme) => {
|
|
5939
5793
|
const { primaryColor, backgroundSurfaceColor, hoverColor } = getThemedColors(theme);
|
|
5940
5794
|
const { primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
|
|
5941
5795
|
const frostedGlassBackgroundColor = isThemeDark(theme)
|
|
@@ -6295,7 +6149,7 @@ const getDialogStickyAreaJssStyle = (area, theme) => {
|
|
|
6295
6149
|
const cssVariableWidth$2 = '--p-flyout-width';
|
|
6296
6150
|
// TODO: we shouldn't expose --p-flyout-max-width
|
|
6297
6151
|
const cssVariableMaxWidth = '--p-flyout-max-width';
|
|
6298
|
-
const getComponentCss$
|
|
6152
|
+
const getComponentCss$Q = (isOpen, position, hasHeader, hasFooter, hasSubFooter, theme) => {
|
|
6299
6153
|
const isPositionStart = position === 'start' || position === 'left';
|
|
6300
6154
|
return getCss({
|
|
6301
6155
|
'@global': {
|
|
@@ -6369,7 +6223,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
6369
6223
|
const gridItemWidths = [
|
|
6370
6224
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
6371
6225
|
];
|
|
6372
|
-
const getComponentCss$
|
|
6226
|
+
const getComponentCss$P = (size, offset) => {
|
|
6373
6227
|
return getCss({
|
|
6374
6228
|
'@global': {
|
|
6375
6229
|
':host': addImportantToEachRule({
|
|
@@ -6389,7 +6243,7 @@ const getComponentCss$O = (size, offset) => {
|
|
|
6389
6243
|
};
|
|
6390
6244
|
|
|
6391
6245
|
const gutter = `calc(${gridGap} / -2)`;
|
|
6392
|
-
const getComponentCss$
|
|
6246
|
+
const getComponentCss$O = (direction, wrap) => {
|
|
6393
6247
|
return getCss({
|
|
6394
6248
|
'@global': {
|
|
6395
6249
|
':host': {
|
|
@@ -6415,7 +6269,7 @@ const sizeMap$3 = {
|
|
|
6415
6269
|
'x-large': fontSizeHeadingXLarge,
|
|
6416
6270
|
'xx-large': fontSizeHeadingXXLarge,
|
|
6417
6271
|
};
|
|
6418
|
-
const getComponentCss$
|
|
6272
|
+
const getComponentCss$N = (size, align, color, ellipsis, theme) => {
|
|
6419
6273
|
return getCss({
|
|
6420
6274
|
'@global': {
|
|
6421
6275
|
':host': {
|
|
@@ -6475,7 +6329,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
6475
6329
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
6476
6330
|
};
|
|
6477
6331
|
};
|
|
6478
|
-
const getComponentCss$
|
|
6332
|
+
const getComponentCss$M = (variant, align, color, ellipsis, theme) => {
|
|
6479
6333
|
return getCss({
|
|
6480
6334
|
'@global': {
|
|
6481
6335
|
':host': {
|
|
@@ -6583,7 +6437,7 @@ const isFlippableIcon = (name, source) => {
|
|
|
6583
6437
|
name === 'logout' ||
|
|
6584
6438
|
name === 'send'));
|
|
6585
6439
|
};
|
|
6586
|
-
const getComponentCss$
|
|
6440
|
+
const getComponentCss$L = (name, source, color, size, theme) => {
|
|
6587
6441
|
const isColorInherit = color === 'inherit';
|
|
6588
6442
|
const isSizeInherit = size === 'inherit';
|
|
6589
6443
|
const isDark = isThemeDark(theme);
|
|
@@ -6700,7 +6554,7 @@ const getHeadingJssStyle = (theme) => ({
|
|
|
6700
6554
|
...headingSmallStyle,
|
|
6701
6555
|
...getTextJssStyle(theme),
|
|
6702
6556
|
});
|
|
6703
|
-
const getComponentCss$
|
|
6557
|
+
const getComponentCss$K = (state, hasAction, hasClose, theme) => {
|
|
6704
6558
|
return getCss({
|
|
6705
6559
|
'@global': {
|
|
6706
6560
|
':host': {
|
|
@@ -6731,7 +6585,7 @@ const getComponentCss$J = (state, hasAction, hasClose, theme) => {
|
|
|
6731
6585
|
});
|
|
6732
6586
|
};
|
|
6733
6587
|
|
|
6734
|
-
const getComponentCss$
|
|
6588
|
+
const getComponentCss$J = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
6735
6589
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme), hasSlottedAnchor && {
|
|
6736
6590
|
'@global': addImportantToEachRule({
|
|
6737
6591
|
'::slotted': {
|
|
@@ -6759,7 +6613,7 @@ const getComponentCss$I = (icon, iconSource, active, stretch, size, hideLabel, a
|
|
|
6759
6613
|
}));
|
|
6760
6614
|
};
|
|
6761
6615
|
|
|
6762
|
-
const getComponentCss$
|
|
6616
|
+
const getComponentCss$I = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
|
|
6763
6617
|
const { linkColor } = getHighContrastColors();
|
|
6764
6618
|
const isPrimary = variant === 'primary';
|
|
6765
6619
|
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), {
|
|
@@ -6801,58 +6655,120 @@ const getComponentCss$H = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
6801
6655
|
}));
|
|
6802
6656
|
};
|
|
6803
6657
|
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
|
|
6807
|
-
|
|
6808
|
-
const getComponentCss$G = (aspectRatio, weight, direction, hasDescription) => {
|
|
6809
|
-
const tileBaseStyles = getTileBaseStyles(aspectRatio);
|
|
6658
|
+
const getComponentCss$H = (aspectRatio, weight, // to get deprecated semibold typed
|
|
6659
|
+
direction, hasDescription) => {
|
|
6810
6660
|
return getCss({
|
|
6811
|
-
...tileBaseStyles,
|
|
6812
6661
|
'@global': {
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6662
|
+
':host': {
|
|
6663
|
+
display: 'block', // `display: flex` would be more ideal, but doesn't work in Safari in all cases
|
|
6664
|
+
hyphens: 'auto', // TODO: shouldn't we expose a CSS variable instead?
|
|
6665
|
+
...addImportantToEachRule({
|
|
6666
|
+
...colorSchemeStyles,
|
|
6667
|
+
...hostHiddenStyles,
|
|
6668
|
+
}),
|
|
6669
|
+
},
|
|
6670
|
+
slot: {
|
|
6671
|
+
'&:not([name])': {
|
|
6672
|
+
display: 'block',
|
|
6673
|
+
width: '100%',
|
|
6674
|
+
height: '100%',
|
|
6675
|
+
transition: getTransition('transform', 'moderate'),
|
|
6676
|
+
},
|
|
6677
|
+
'&[name=primary]': {
|
|
6678
|
+
pointerEvents: 'auto',
|
|
6679
|
+
},
|
|
6680
|
+
'&[name=secondary]': {
|
|
6681
|
+
pointerEvents: 'auto',
|
|
6682
|
+
},
|
|
6683
|
+
},
|
|
6684
|
+
'::slotted(:is(img,picture))': addImportantToEachRule({
|
|
6685
|
+
display: 'block',
|
|
6686
|
+
width: '100%',
|
|
6687
|
+
height: '100%',
|
|
6688
|
+
}),
|
|
6689
|
+
'::slotted(img)': addImportantToEachRule({
|
|
6690
|
+
objectFit: 'cover',
|
|
6691
|
+
}),
|
|
6692
|
+
a: {
|
|
6693
|
+
gridArea: '1/1/-1 /-1',
|
|
6694
|
+
zIndex: 4,
|
|
6695
|
+
outline: 0, // reset focus style since this element is used to improve mouse interaction only
|
|
6816
6696
|
},
|
|
6697
|
+
'h1,h2,h3,h4,h5,h6': {
|
|
6698
|
+
margin: 0,
|
|
6699
|
+
zIndex: 3,
|
|
6700
|
+
maxWidth: '34.375rem',
|
|
6701
|
+
...textLargeStyle,
|
|
6702
|
+
hyphens: 'inherit',
|
|
6703
|
+
color: getThemedColors('dark').primaryColor,
|
|
6704
|
+
...buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) })),
|
|
6705
|
+
},
|
|
6706
|
+
...(hasDescription && {
|
|
6707
|
+
p: {
|
|
6708
|
+
margin: '-12px 0 0 ',
|
|
6709
|
+
zIndex: 3,
|
|
6710
|
+
maxWidth: '34.375rem',
|
|
6711
|
+
...textSmallStyle,
|
|
6712
|
+
color: getThemedColors('dark').primaryColor,
|
|
6713
|
+
hyphens: 'inherit',
|
|
6714
|
+
},
|
|
6715
|
+
}),
|
|
6817
6716
|
},
|
|
6818
|
-
|
|
6819
|
-
...
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6717
|
+
root: {
|
|
6718
|
+
...buildResponsiveStyles(aspectRatio, (aspectRatioValue) => ({
|
|
6719
|
+
aspectRatio: aspectRatioValue.replace(':', '/'), // mapping of the deprecated aspect-ratio with ':'
|
|
6720
|
+
})),
|
|
6721
|
+
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
6722
|
+
height: '100%', // necessary in case tile content overflows in grid or flex context
|
|
6723
|
+
display: 'grid',
|
|
6724
|
+
gridTemplate: `${spacingFluidMedium} auto minmax(0px, 1fr) auto ${spacingFluidMedium}/${spacingFluidMedium} minmax(0px, 1fr) ${spacingFluidMedium}`,
|
|
6725
|
+
'&::after': {
|
|
6726
|
+
content: '""',
|
|
6727
|
+
zIndex: 2,
|
|
6728
|
+
gridArea: '4/1/6/-1',
|
|
6729
|
+
...gradientToTopStyle,
|
|
6730
|
+
marginTop: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
6731
|
+
borderEndStartRadius: borderRadiusLarge,
|
|
6732
|
+
borderEndEndRadius: borderRadiusLarge,
|
|
6733
|
+
...forcedColorsMediaQuery({
|
|
6734
|
+
background: 'rgba(0,0,0,0.7)',
|
|
6735
|
+
}),
|
|
6736
|
+
},
|
|
6737
|
+
...hoverMediaQuery({
|
|
6738
|
+
'&:hover slot:not([name])': {
|
|
6739
|
+
transform: 'scale3d(1.05,1.05,1.05)',
|
|
6740
|
+
},
|
|
6741
|
+
}),
|
|
6824
6742
|
},
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
left: spacingFluidMedium,
|
|
6829
|
-
right: spacingFluidMedium,
|
|
6743
|
+
header: {
|
|
6744
|
+
gridArea: '2/2',
|
|
6745
|
+
zIndex: 3,
|
|
6830
6746
|
display: 'flex',
|
|
6747
|
+
flexDirection: 'column',
|
|
6748
|
+
gap: spacingFluidSmall,
|
|
6831
6749
|
},
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6750
|
+
media: {
|
|
6751
|
+
gridArea: '1/1/-1 /-1',
|
|
6752
|
+
zIndex: 1,
|
|
6753
|
+
overflow: 'hidden', // relevant for scaling of nested image
|
|
6754
|
+
borderRadius: borderRadiusLarge,
|
|
6755
|
+
},
|
|
6756
|
+
footer: {
|
|
6757
|
+
gridArea: '4/2',
|
|
6758
|
+
display: 'flex',
|
|
6759
|
+
gap: spacingStaticMedium,
|
|
6760
|
+
justifyContent: 'space-between',
|
|
6761
|
+
alignItems: 'flex-start',
|
|
6762
|
+
flexDirection: 'column',
|
|
6837
6763
|
},
|
|
6838
|
-
...(hasDescription && {
|
|
6839
|
-
description: {
|
|
6840
|
-
margin: '-12px 0 0 ', // TODO: perhaps gap should be overridden instead
|
|
6841
|
-
...textSmallStyle,
|
|
6842
|
-
hyphens: 'inherit',
|
|
6843
|
-
},
|
|
6844
|
-
}),
|
|
6845
6764
|
'link-group': {
|
|
6765
|
+
zIndex: 5,
|
|
6846
6766
|
display: 'flex',
|
|
6847
6767
|
width: '100%',
|
|
6768
|
+
pointerEvents: 'none',
|
|
6848
6769
|
gap: spacingFluidSmall,
|
|
6849
6770
|
...buildResponsiveStyles(direction, getGroupDirectionJssStyles),
|
|
6850
6771
|
},
|
|
6851
|
-
'link-overlay': {
|
|
6852
|
-
// covers entire tile, used for expanded click-area only
|
|
6853
|
-
position: 'fixed',
|
|
6854
|
-
inset: 0,
|
|
6855
|
-
},
|
|
6856
6772
|
});
|
|
6857
6773
|
};
|
|
6858
6774
|
|
|
@@ -6871,7 +6787,7 @@ const getMultilineEllipsis = (lineClamp) => {
|
|
|
6871
6787
|
overflow: 'hidden',
|
|
6872
6788
|
};
|
|
6873
6789
|
};
|
|
6874
|
-
const getComponentCss$
|
|
6790
|
+
const getComponentCss$G = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio, theme) => {
|
|
6875
6791
|
const { primaryColor, contrastHighColor, contrastMediumColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
6876
6792
|
const { primaryColor: primaryColorDark, contrastHighColor: contrastHighColorDark, contrastMediumColor: contrastMediumColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
|
|
6877
6793
|
return getCss({
|
|
@@ -7009,13 +6925,131 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7009
6925
|
});
|
|
7010
6926
|
};
|
|
7011
6927
|
|
|
7012
|
-
const getComponentCss$
|
|
6928
|
+
const getComponentCss$F = (aspectRatio, size, weight, // to get deprecated semibold typed
|
|
6929
|
+
background, align, compact, hasGradient, isDisabled) => {
|
|
6930
|
+
const isTopAligned = align === 'top';
|
|
7013
6931
|
return getCss({
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
6932
|
+
'@global': {
|
|
6933
|
+
':host': {
|
|
6934
|
+
display: 'block', // `display: flex` would be more ideal, but doesn't work in Safari in all cases
|
|
6935
|
+
hyphens: 'auto', // TODO: shouldn't we expose a CSS variable instead?
|
|
6936
|
+
...addImportantToEachRule({
|
|
6937
|
+
...colorSchemeStyles,
|
|
6938
|
+
...hostHiddenStyles,
|
|
6939
|
+
}),
|
|
6940
|
+
},
|
|
6941
|
+
slot: {
|
|
6942
|
+
display: 'block',
|
|
6943
|
+
'&:not([name])': {
|
|
6944
|
+
width: '100%',
|
|
6945
|
+
height: '100%',
|
|
6946
|
+
transition: getTransition('transform', 'moderate'),
|
|
6947
|
+
},
|
|
6948
|
+
'&[name="header"]': {
|
|
6949
|
+
gridArea: `${isTopAligned ? 4 : 2}/2`,
|
|
6950
|
+
zIndex: 3,
|
|
6951
|
+
},
|
|
6952
|
+
},
|
|
6953
|
+
'::slotted(:is(img,picture))': addImportantToEachRule({
|
|
6954
|
+
display: 'block',
|
|
6955
|
+
width: '100%',
|
|
6956
|
+
height: '100%',
|
|
6957
|
+
}),
|
|
6958
|
+
'::slotted(img)': addImportantToEachRule({
|
|
6959
|
+
objectFit: 'cover',
|
|
6960
|
+
}),
|
|
6961
|
+
a: {
|
|
6962
|
+
gridArea: '1/1/-1 /-1',
|
|
6963
|
+
zIndex: 4,
|
|
6964
|
+
outline: 0, // reset focus style since this element is used to improve mouse interaction only
|
|
6965
|
+
},
|
|
6966
|
+
p: {
|
|
6967
|
+
...textMediumStyle,
|
|
6968
|
+
zIndex: 3,
|
|
6969
|
+
margin: 0, // reset ua-style
|
|
6970
|
+
maxWidth: '34.375rem',
|
|
6971
|
+
hyphens: 'inherit',
|
|
6972
|
+
...mergeDeep(buildResponsiveStyles(size, (sizeValue) => ({
|
|
6973
|
+
fontSize: getFontSizeText(sizeValue === 'default' ? 'medium' : sizeValue), // mapping of the deprecated size 'default'
|
|
6974
|
+
})), buildResponsiveStyles(weight, (weightValue) => ({
|
|
6975
|
+
fontWeight: getFontWeight(weightValue === 'semibold' ? 'semi-bold' : weightValue), // mapping of the deprecated weight 'semibold'
|
|
6976
|
+
})), buildResponsiveStyles(background, (backgroundValue) => ({
|
|
6977
|
+
color: getThemedColors(backgroundValue).primaryColor,
|
|
6978
|
+
}))),
|
|
6979
|
+
},
|
|
6980
|
+
},
|
|
6981
|
+
root: {
|
|
6982
|
+
...buildResponsiveStyles(aspectRatio, (aspectRatioValue) => ({
|
|
6983
|
+
aspectRatio: aspectRatioValue.replace(':', '/'), // mapping of the deprecated aspect-ratio with ':'
|
|
6984
|
+
})),
|
|
6985
|
+
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
6986
|
+
height: '100%', // necessary in case tile content overflows in grid or flex context
|
|
6987
|
+
display: 'grid',
|
|
6988
|
+
gridTemplate: `${spacingFluidMedium} auto minmax(0px, 1fr) auto ${spacingFluidMedium}/${spacingFluidMedium} minmax(0px, 1fr) ${spacingFluidMedium}`,
|
|
6989
|
+
...(hasGradient &&
|
|
6990
|
+
isThemeDark(background) && {
|
|
6991
|
+
'&::after': {
|
|
6992
|
+
content: '""',
|
|
6993
|
+
zIndex: 2,
|
|
6994
|
+
...(isTopAligned
|
|
6995
|
+
? {
|
|
6996
|
+
gridArea: '1/1/3/-1',
|
|
6997
|
+
...gradientToBottomStyle,
|
|
6998
|
+
marginBottom: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
6999
|
+
borderStartStartRadius: borderRadiusLarge,
|
|
7000
|
+
borderStartEndRadius: borderRadiusLarge,
|
|
7001
|
+
}
|
|
7002
|
+
: {
|
|
7003
|
+
gridArea: '4/1/6/-1',
|
|
7004
|
+
...gradientToTopStyle,
|
|
7005
|
+
marginTop: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
7006
|
+
borderEndStartRadius: borderRadiusLarge,
|
|
7007
|
+
borderEndEndRadius: borderRadiusLarge,
|
|
7008
|
+
}),
|
|
7009
|
+
...forcedColorsMediaQuery({
|
|
7010
|
+
background: 'rgba(0,0,0,0.7)',
|
|
7011
|
+
}),
|
|
7012
|
+
},
|
|
7013
|
+
}),
|
|
7014
|
+
...(hoverMediaQuery({
|
|
7015
|
+
'&:hover slot:not([name])': {
|
|
7016
|
+
transform: 'scale3d(1.05,1.05,1.05)',
|
|
7017
|
+
},
|
|
7018
|
+
})),
|
|
7019
|
+
},
|
|
7020
|
+
media: {
|
|
7021
|
+
gridArea: '1/1/-1 /-1',
|
|
7022
|
+
zIndex: 1,
|
|
7023
|
+
overflow: 'hidden', // relevant for scaling of nested image
|
|
7024
|
+
borderRadius: borderRadiusLarge,
|
|
7025
|
+
},
|
|
7026
|
+
footer: {
|
|
7027
|
+
gridArea: `${isTopAligned ? 2 : 4}/2`,
|
|
7028
|
+
display: 'flex',
|
|
7029
|
+
gap: spacingStaticMedium,
|
|
7030
|
+
justifyContent: 'space-between',
|
|
7031
|
+
...buildResponsiveStyles(compact, (compactValue) => compactValue
|
|
7032
|
+
? {
|
|
7033
|
+
alignItems: 'center',
|
|
7034
|
+
flexDirection: 'row',
|
|
7035
|
+
}
|
|
7036
|
+
: {
|
|
7037
|
+
alignItems: 'flex-start',
|
|
7038
|
+
flexDirection: 'column',
|
|
7039
|
+
}),
|
|
7040
|
+
},
|
|
7041
|
+
'link-or-button-pure': {
|
|
7042
|
+
zIndex: 5,
|
|
7043
|
+
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
7044
|
+
display: compactValue ? 'inline-block' : 'none',
|
|
7045
|
+
})),
|
|
7046
|
+
},
|
|
7047
|
+
'link-or-button': {
|
|
7048
|
+
minHeight: '54px', // prevent content shift
|
|
7049
|
+
zIndex: 5,
|
|
7050
|
+
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
7051
|
+
display: compactValue ? 'none' : 'inline-block',
|
|
7052
|
+
})),
|
|
7019
7053
|
},
|
|
7020
7054
|
});
|
|
7021
7055
|
};
|
|
@@ -7030,7 +7064,7 @@ const baseSizes = {
|
|
|
7030
7064
|
height: '72px',
|
|
7031
7065
|
},
|
|
7032
7066
|
};
|
|
7033
|
-
const getComponentCss$
|
|
7067
|
+
const getComponentCss$E = (size) => {
|
|
7034
7068
|
return getCss({
|
|
7035
7069
|
'@global': {
|
|
7036
7070
|
':host': {
|
|
@@ -7080,7 +7114,7 @@ const cssVariableSpacingBottom = '--p-modal-spacing-bottom'; // TODO: maybe --p-
|
|
|
7080
7114
|
const safeZoneVertical = `calc(${spacingFluidSmall} + ${spacingFluidMedium})`;
|
|
7081
7115
|
const safeZoneHorizontal = `${spacingFluidLarge}`;
|
|
7082
7116
|
const cssClassNameStretchToFullModalWidth = 'stretch-to-full-modal-width';
|
|
7083
|
-
const getComponentCss$
|
|
7117
|
+
const getComponentCss$D = (isOpen, backdrop, fullscreen, hasDismissButton, hasHeader, hasFooter, theme) => {
|
|
7084
7118
|
return getCss({
|
|
7085
7119
|
'@global': {
|
|
7086
7120
|
':host': {
|
|
@@ -7217,7 +7251,7 @@ const getThemedColor = (color, themedColors) => {
|
|
|
7217
7251
|
};
|
|
7218
7252
|
return colorMap[color];
|
|
7219
7253
|
};
|
|
7220
|
-
const getComponentCss$
|
|
7254
|
+
const getComponentCss$C = (model, safeZone, size, color, theme) => {
|
|
7221
7255
|
const { width, height } = MODEL_SIGNATURES_MANIFEST[model];
|
|
7222
7256
|
const isSizeInherit = size === 'inherit';
|
|
7223
7257
|
return getCss({
|
|
@@ -7261,7 +7295,8 @@ const getComponentCss$B = (model, safeZone, size, color, theme) => {
|
|
|
7261
7295
|
});
|
|
7262
7296
|
};
|
|
7263
7297
|
|
|
7264
|
-
const
|
|
7298
|
+
const cssVariableMultiSelectPaddingInlineStart = '--p-internal-multi-select-option-padding-left';
|
|
7299
|
+
const getComponentCss$B = (theme) => {
|
|
7265
7300
|
const { primaryColor, contrastHighColor, backgroundSurfaceColor, disabledColor, contrastLowColor } = getThemedColors(theme);
|
|
7266
7301
|
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, contrastHighColor: contrastHighColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
7267
7302
|
const { highlightColor } = getHighContrastColors();
|
|
@@ -7277,6 +7312,7 @@ const getComponentCss$A = (theme) => {
|
|
|
7277
7312
|
justifyContent: 'space-between',
|
|
7278
7313
|
gap: '12px',
|
|
7279
7314
|
padding: `${spacingStaticSmall} 12px`,
|
|
7315
|
+
paddingInlineStart: `var(${cssVariableMultiSelectPaddingInlineStart}, 12px)`,
|
|
7280
7316
|
flex: `1 0 calc(${fontLineHeight} + ${spacingStaticSmall} * 2)`,
|
|
7281
7317
|
color: contrastHighColor,
|
|
7282
7318
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
@@ -7474,7 +7510,7 @@ const getUnitCounterJssStyle = (isDisabled, theme) => {
|
|
|
7474
7510
|
|
|
7475
7511
|
const INTERNAL_MULTI_SELECT_SLOT = 'internal-select';
|
|
7476
7512
|
|
|
7477
|
-
const getComponentCss$
|
|
7513
|
+
const getComponentCss$A = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
|
|
7478
7514
|
const { contrastHighColor } = getThemedColors(theme);
|
|
7479
7515
|
const { contrastHighColor: contrastHighColorDark } = getThemedColors('dark');
|
|
7480
7516
|
return getCss({
|
|
@@ -7554,7 +7590,6 @@ const getComponentCss$z = (direction, isOpen, isDisabled, hideLabel, state, isWi
|
|
|
7554
7590
|
};
|
|
7555
7591
|
// TODO: use getSlottedTextFieldTextareaSelectStyles() instead an manipulate selectors like done with PIN Code or even better make it configurable as parameter
|
|
7556
7592
|
const getInputStyles = (isDisabled, direction, isOpen, state, theme) => {
|
|
7557
|
-
const isDirectionDown = direction === 'down';
|
|
7558
7593
|
const { primaryColor, disabledColor, backgroundColor, contrastMediumColor } = getThemedColors(theme);
|
|
7559
7594
|
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, backgroundColor: backgroundColorDark, contrastMediumColor: contrastMediumColorDark, } = getThemedColors('dark');
|
|
7560
7595
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -7605,10 +7640,10 @@ const getInputStyles = (isDisabled, direction, isOpen, state, theme) => {
|
|
|
7605
7640
|
border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`,
|
|
7606
7641
|
borderRadius: borderRadiusSmall,
|
|
7607
7642
|
...(isOpen && {
|
|
7608
|
-
[
|
|
7609
|
-
[
|
|
7610
|
-
[
|
|
7611
|
-
[
|
|
7643
|
+
['paddingBottom' ]: `calc(${formElementPaddingVertical} + 1px)`, // Add padding to keep same height when border changes
|
|
7644
|
+
['borderBottom' ]: addImportantToRule(`1px solid ${contrastMediumColor}`),
|
|
7645
|
+
['borderBottomLeftRadius' ]: 0,
|
|
7646
|
+
['borderBottomRightRadius' ]: 0,
|
|
7612
7647
|
}),
|
|
7613
7648
|
...(isDisabled && {
|
|
7614
7649
|
...getPlaceholderJssStyle({ color: disabledColor }),
|
|
@@ -7622,7 +7657,7 @@ const getInputStyles = (isDisabled, direction, isOpen, state, theme) => {
|
|
|
7622
7657
|
background: backgroundColorDark,
|
|
7623
7658
|
border: `${borderWidthBase} solid ${isOpen ? primaryColorDark : formStateColorDark || contrastMediumColorDark}`,
|
|
7624
7659
|
...(isOpen && {
|
|
7625
|
-
[
|
|
7660
|
+
['borderBottom' ]: addImportantToRule(`1px solid ${contrastMediumColorDark}`),
|
|
7626
7661
|
}),
|
|
7627
7662
|
...(isDisabled && {
|
|
7628
7663
|
...getPlaceholderJssStyle({ color: disabledColorDark }),
|
|
@@ -7634,7 +7669,6 @@ const getInputStyles = (isDisabled, direction, isOpen, state, theme) => {
|
|
|
7634
7669
|
};
|
|
7635
7670
|
};
|
|
7636
7671
|
const getListStyles$2 = (isOpen, direction, theme) => {
|
|
7637
|
-
const isDirectionDown = direction === 'down';
|
|
7638
7672
|
const { primaryColor, backgroundColor } = getThemedColors(theme);
|
|
7639
7673
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark } = getThemedColors('dark');
|
|
7640
7674
|
return {
|
|
@@ -7648,17 +7682,17 @@ const getListStyles$2 = (isOpen, direction, theme) => {
|
|
|
7648
7682
|
zIndex: 10,
|
|
7649
7683
|
left: 0,
|
|
7650
7684
|
right: 0,
|
|
7651
|
-
[
|
|
7685
|
+
['top' ]: '100%',
|
|
7652
7686
|
boxSizing: 'border-box',
|
|
7653
7687
|
maxHeight: `${8.5 * (MULTI_SELECT_OPTION_HEIGHT + 8) + 6 + 2}px`, // 8.5 options * option height + 8px gap + additional spacing (6px = padding, 2px = border)
|
|
7654
7688
|
overflowY: 'auto',
|
|
7655
7689
|
WebkitOverflowScrolling: 'touch',
|
|
7656
7690
|
background: backgroundColor,
|
|
7657
7691
|
border: `2px solid ${primaryColor}`,
|
|
7658
|
-
[
|
|
7692
|
+
['borderTop' ]: 'none',
|
|
7659
7693
|
borderRadius: borderRadiusSmall,
|
|
7660
|
-
[
|
|
7661
|
-
[
|
|
7694
|
+
['borderTopLeftRadius' ]: 0,
|
|
7695
|
+
['borderTopRightRadius' ]: 0,
|
|
7662
7696
|
scrollbarWidth: 'thin', // firefox
|
|
7663
7697
|
scrollbarColor: 'auto', // firefox
|
|
7664
7698
|
transition: getTransition('border-color'),
|
|
@@ -7670,6 +7704,136 @@ const getListStyles$2 = (isOpen, direction, theme) => {
|
|
|
7670
7704
|
};
|
|
7671
7705
|
};
|
|
7672
7706
|
|
|
7707
|
+
const cssVariableSelectPaddingInlineStart = '--p-internal-select-option-padding-left';
|
|
7708
|
+
// TODO: Enforce order of slotted text, img
|
|
7709
|
+
const getComponentCss$z = (theme) => {
|
|
7710
|
+
return getCss({
|
|
7711
|
+
'@global': addImportantToEachRule({
|
|
7712
|
+
':host': {
|
|
7713
|
+
scrollMargin: '6px', // Aligns option when list is scrolled by navigating with keyboard
|
|
7714
|
+
...hostHiddenStyles,
|
|
7715
|
+
},
|
|
7716
|
+
'::slotted(img)': {
|
|
7717
|
+
height: fontLineHeight,
|
|
7718
|
+
borderRadius: borderRadiusSmall,
|
|
7719
|
+
},
|
|
7720
|
+
}),
|
|
7721
|
+
...getOptionStyles(theme),
|
|
7722
|
+
icon: {
|
|
7723
|
+
marginInlineStart: 'auto',
|
|
7724
|
+
},
|
|
7725
|
+
});
|
|
7726
|
+
};
|
|
7727
|
+
// TODO: Copied from multi-select and select-wrapper-dropdown, extract and reuse
|
|
7728
|
+
const getOptionStyles = (theme) => {
|
|
7729
|
+
const { primaryColor: primaryColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
7730
|
+
const { primaryColor, contrastHighColor, backgroundSurfaceColor, disabledColor, contrastLowColor } = getThemedColors(theme);
|
|
7731
|
+
const { highlightColor } = getHighContrastColors();
|
|
7732
|
+
return {
|
|
7733
|
+
option: {
|
|
7734
|
+
fontWeight: fontWeightRegular,
|
|
7735
|
+
display: 'flex',
|
|
7736
|
+
gap: '12px',
|
|
7737
|
+
padding: `${spacingStaticSmall} 12px`,
|
|
7738
|
+
paddingInlineStart: `var(${cssVariableSelectPaddingInlineStart}, 12px)`,
|
|
7739
|
+
flex: `1 0 calc(${fontLineHeight} + ${spacingStaticSmall} * 2)`,
|
|
7740
|
+
minHeight: `calc(${fontLineHeight} + ${spacingStaticSmall} * 2)`, // TODO: Added this line to preserve height for empty option
|
|
7741
|
+
color: contrastHighColor,
|
|
7742
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7743
|
+
color: contrastHighColorDark,
|
|
7744
|
+
}),
|
|
7745
|
+
cursor: 'pointer',
|
|
7746
|
+
textAlign: 'start',
|
|
7747
|
+
wordBreak: 'break-word',
|
|
7748
|
+
boxSizing: 'border-box',
|
|
7749
|
+
borderRadius: borderRadiusSmall,
|
|
7750
|
+
transition: `${getTransition('background-color')}, ${getTransition('color')}`,
|
|
7751
|
+
...getNoResultsOptionJssStyle(),
|
|
7752
|
+
...hoverMediaQuery({
|
|
7753
|
+
'&:not([aria-disabled]):not(.option--disabled):not([role=status]):hover': {
|
|
7754
|
+
color: isHighContrastMode ? highlightColor : primaryColor,
|
|
7755
|
+
background: contrastLowColor,
|
|
7756
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7757
|
+
color: isHighContrastMode ? highlightColor : primaryColorDark,
|
|
7758
|
+
background: contrastLowColorDark,
|
|
7759
|
+
}),
|
|
7760
|
+
},
|
|
7761
|
+
}),
|
|
7762
|
+
'&--selected': {
|
|
7763
|
+
cursor: 'default',
|
|
7764
|
+
pointerEvents: 'none',
|
|
7765
|
+
background: backgroundSurfaceColor,
|
|
7766
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7767
|
+
background: backgroundSurfaceColorDark,
|
|
7768
|
+
}),
|
|
7769
|
+
},
|
|
7770
|
+
'&--highlighted': {
|
|
7771
|
+
background: contrastLowColor,
|
|
7772
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7773
|
+
background: contrastLowColorDark,
|
|
7774
|
+
}),
|
|
7775
|
+
},
|
|
7776
|
+
'&--highlighted, &--selected': {
|
|
7777
|
+
color: isHighContrastMode ? highlightColor : primaryColor,
|
|
7778
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7779
|
+
color: isHighContrastMode ? highlightColor : primaryColorDark,
|
|
7780
|
+
}),
|
|
7781
|
+
},
|
|
7782
|
+
'&--disabled': {
|
|
7783
|
+
cursor: 'not-allowed',
|
|
7784
|
+
color: disabledColor,
|
|
7785
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7786
|
+
color: disabledColorDark,
|
|
7787
|
+
}),
|
|
7788
|
+
},
|
|
7789
|
+
'&--hidden': {
|
|
7790
|
+
display: 'none',
|
|
7791
|
+
},
|
|
7792
|
+
},
|
|
7793
|
+
};
|
|
7794
|
+
};
|
|
7795
|
+
|
|
7796
|
+
const getComponentCss$y = (isDisabled, theme) => getCss({
|
|
7797
|
+
'@global': {
|
|
7798
|
+
':host': addImportantToEachRule({
|
|
7799
|
+
...colorSchemeStyles,
|
|
7800
|
+
...hostHiddenStyles,
|
|
7801
|
+
}),
|
|
7802
|
+
'::slotted(*)': {
|
|
7803
|
+
[cssVariableSelectPaddingInlineStart]: '28px',
|
|
7804
|
+
[cssVariableMultiSelectPaddingInlineStart]: '28px',
|
|
7805
|
+
},
|
|
7806
|
+
},
|
|
7807
|
+
...getOptgroupStyles(isDisabled, theme),
|
|
7808
|
+
});
|
|
7809
|
+
const getOptgroupStyles = (isDisabled, theme) => {
|
|
7810
|
+
const { primaryColor, disabledColor } = getThemedColors(theme);
|
|
7811
|
+
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark } = getThemedColors('dark');
|
|
7812
|
+
return {
|
|
7813
|
+
optgroup: {
|
|
7814
|
+
display: 'flex',
|
|
7815
|
+
flexDirection: 'column',
|
|
7816
|
+
gap: spacingStaticSmall,
|
|
7817
|
+
},
|
|
7818
|
+
label: {
|
|
7819
|
+
color: primaryColor,
|
|
7820
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7821
|
+
color: primaryColorDark,
|
|
7822
|
+
}),
|
|
7823
|
+
...(isDisabled && {
|
|
7824
|
+
color: disabledColor,
|
|
7825
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7826
|
+
color: disabledColorDark,
|
|
7827
|
+
}),
|
|
7828
|
+
}),
|
|
7829
|
+
display: 'block',
|
|
7830
|
+
padding: `${spacingStaticSmall} 12px`,
|
|
7831
|
+
fontSize: fontSizeTextXSmall,
|
|
7832
|
+
fontWeight: fontWeightSemiBold,
|
|
7833
|
+
},
|
|
7834
|
+
};
|
|
7835
|
+
};
|
|
7836
|
+
|
|
7673
7837
|
const mediaQueryMinS = getMediaQueryMin('s');
|
|
7674
7838
|
const mediaQueryMaxS = getMediaQueryMax('s');
|
|
7675
7839
|
// button size needs to be fluid between 320px and 360px viewport width, so that the pagination fits into 320px viewport
|
|
@@ -7680,7 +7844,7 @@ const disabledCursorStyle = {
|
|
|
7680
7844
|
pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
|
|
7681
7845
|
};
|
|
7682
7846
|
const hiddenStyle = { display: 'none' };
|
|
7683
|
-
const getComponentCss$
|
|
7847
|
+
const getComponentCss$x = (activePage, pageTotal, showLastPage, theme) => {
|
|
7684
7848
|
const { primaryColor, disabledColor, hoverColor } = getThemedColors(theme);
|
|
7685
7849
|
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
|
|
7686
7850
|
return getCss({
|
|
@@ -7815,7 +7979,7 @@ const removeStyles = (selector, styles) => Object.fromEntries(Object.entries(sty
|
|
|
7815
7979
|
return [key, value];
|
|
7816
7980
|
}));
|
|
7817
7981
|
|
|
7818
|
-
const getComponentCss$
|
|
7982
|
+
const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, isWithinForm, length, theme) => {
|
|
7819
7983
|
const inputSize = `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`; // equivalent to calculation of input height within form-styles
|
|
7820
7984
|
const inputStyles = removeStyles('input[readonly]', removeSlottedSelector(getSlottedTextFieldTextareaSelectStyles('input', state, isLoading, theme, {
|
|
7821
7985
|
// TODO: move into getSlottedTextFieldTextareaSelectStyles()
|
|
@@ -7996,7 +8160,7 @@ const getDirectionArrowMap = (theme) => {
|
|
|
7996
8160
|
},
|
|
7997
8161
|
};
|
|
7998
8162
|
};
|
|
7999
|
-
const getComponentCss$
|
|
8163
|
+
const getComponentCss$v = (direction, isNativePopoverCase, theme) => {
|
|
8000
8164
|
const { hoverColor, backgroundColor, primaryColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
8001
8165
|
const { hoverColor: hoverColorDark, primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
|
|
8002
8166
|
const shadowColor = 'rgba(0,0,0,0.3)';
|
|
@@ -8106,7 +8270,7 @@ const getComponentCss$w = (direction, isNativePopoverCase, theme) => {
|
|
|
8106
8270
|
const getCheckedSVGBackgroundImage = (fill) => {
|
|
8107
8271
|
return getInlineSVGBackgroundImage(`<circle fill="${fill}" cx="12" cy="12" r="6"/>`);
|
|
8108
8272
|
};
|
|
8109
|
-
const getComponentCss$
|
|
8273
|
+
const getComponentCss$u = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
8110
8274
|
const checkedIconColor = isHighContrastMode
|
|
8111
8275
|
? getHighContrastColors().canvasColor
|
|
8112
8276
|
: escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
@@ -8204,7 +8368,7 @@ const getGradient = (theme, gradientColorTheme) => {
|
|
|
8204
8368
|
`rgba(${gradientColor},0)`);
|
|
8205
8369
|
};
|
|
8206
8370
|
const prevNextWrapperWidth = `calc(${fontLineHeight} + 24px)`;
|
|
8207
|
-
const getComponentCss$
|
|
8371
|
+
const getComponentCss$t = (gradientColor, isNextHidden, isPrevHidden, scrollIndicatorPosition, hasScrollbar, theme) => {
|
|
8208
8372
|
const { backgroundColor, backgroundSurfaceColor, hoverColor } = getThemedColors(theme);
|
|
8209
8373
|
const { backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
|
|
8210
8374
|
const backgroundColorLight = {
|
|
@@ -8371,7 +8535,7 @@ const getColors$2 = (isDisabled, isSelected, theme) => {
|
|
|
8371
8535
|
};
|
|
8372
8536
|
};
|
|
8373
8537
|
const getItemPadding = (hasIconAndSlottedContent) => hasIconAndSlottedContent ? `13px ${ITEM_PADDING} 13px 13px` : `13px ${ITEM_PADDING}`;
|
|
8374
|
-
const getComponentCss$
|
|
8538
|
+
const getComponentCss$s = (isDisabled, isSelected, hasIcon, hasSlottedContent, theme) => {
|
|
8375
8539
|
const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$2(isDisabled, isSelected, theme);
|
|
8376
8540
|
const { buttonColor: buttonColorDark, labelColor: labelColorDark, borderColor: borderColorDark, hoverBorderColor: hoverBorderColorDark, } = getColors$2(isDisabled, isSelected, 'dark');
|
|
8377
8541
|
return getCss({
|
|
@@ -8444,7 +8608,7 @@ const getComponentCss$t = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
|
|
|
8444
8608
|
|
|
8445
8609
|
const MIN_ITEM_WIDTH = 46;
|
|
8446
8610
|
const MAX_ITEM_WIDTH = 220;
|
|
8447
|
-
const getComponentCss$
|
|
8611
|
+
const getComponentCss$r = (maxWidth, columns) => {
|
|
8448
8612
|
maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
|
|
8449
8613
|
return getCss({
|
|
8450
8614
|
'@global': {
|
|
@@ -8692,6 +8856,12 @@ const getListStyles$1 = (direction, theme) => {
|
|
|
8692
8856
|
}),
|
|
8693
8857
|
},
|
|
8694
8858
|
}),
|
|
8859
|
+
'&--highlighted': {
|
|
8860
|
+
background: contrastLowColor,
|
|
8861
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8862
|
+
background: contrastLowColorDark,
|
|
8863
|
+
}),
|
|
8864
|
+
},
|
|
8695
8865
|
'&--selected': {
|
|
8696
8866
|
cursor: 'default',
|
|
8697
8867
|
pointerEvents: 'none',
|
|
@@ -8700,12 +8870,6 @@ const getListStyles$1 = (direction, theme) => {
|
|
|
8700
8870
|
background: backgroundSurfaceColorDark,
|
|
8701
8871
|
}),
|
|
8702
8872
|
},
|
|
8703
|
-
'&--highlighted': {
|
|
8704
|
-
background: contrastLowColor,
|
|
8705
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8706
|
-
background: contrastLowColorDark,
|
|
8707
|
-
}),
|
|
8708
|
-
},
|
|
8709
8873
|
'&--highlighted, &--selected': {
|
|
8710
8874
|
color: isHighContrastMode ? highlightColor : primaryColor,
|
|
8711
8875
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
@@ -8722,25 +8886,32 @@ const getListStyles$1 = (direction, theme) => {
|
|
|
8722
8886
|
'&--hidden': {
|
|
8723
8887
|
display: 'none',
|
|
8724
8888
|
},
|
|
8889
|
+
'&--indent': {
|
|
8890
|
+
paddingLeft: '28px',
|
|
8891
|
+
},
|
|
8725
8892
|
},
|
|
8726
8893
|
optgroup: {
|
|
8727
|
-
|
|
8894
|
+
'&--hidden': {
|
|
8895
|
+
display: 'none',
|
|
8896
|
+
},
|
|
8897
|
+
'&--disabled': {
|
|
8898
|
+
color: disabledColor,
|
|
8899
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8900
|
+
color: disabledColorDark,
|
|
8901
|
+
}),
|
|
8902
|
+
},
|
|
8903
|
+
color: primaryColor,
|
|
8728
8904
|
display: 'block',
|
|
8729
|
-
padding:
|
|
8905
|
+
padding: `${spacingStaticSmall} 12px`,
|
|
8906
|
+
fontSize: fontSizeTextXSmall,
|
|
8730
8907
|
fontWeight: fontWeightSemiBold,
|
|
8731
8908
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8732
|
-
color:
|
|
8909
|
+
color: primaryColorDark,
|
|
8733
8910
|
}),
|
|
8734
|
-
'&:not(:first-child)': {
|
|
8735
|
-
marginTop: spacingStaticSmall,
|
|
8736
|
-
},
|
|
8737
|
-
'&~$option': {
|
|
8738
|
-
paddingLeft: '24px',
|
|
8739
|
-
},
|
|
8740
8911
|
},
|
|
8741
8912
|
};
|
|
8742
8913
|
};
|
|
8743
|
-
const getComponentCss$
|
|
8914
|
+
const getComponentCss$q = (direction, isOpen, state, disabled, filter, isNativePopoverCase, theme) => {
|
|
8744
8915
|
return getCss(
|
|
8745
8916
|
// merge because of global styles
|
|
8746
8917
|
mergeDeep({
|
|
@@ -8763,7 +8934,7 @@ const getComponentCss$r = (direction, isOpen, state, disabled, filter, isNativeP
|
|
|
8763
8934
|
: getButtonStyles$1(direction, isOpen, state, theme), isOpen && getListStyles$1(direction, theme)));
|
|
8764
8935
|
};
|
|
8765
8936
|
|
|
8766
|
-
const getComponentCss$
|
|
8937
|
+
const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, theme) => {
|
|
8767
8938
|
return getCss({
|
|
8768
8939
|
'@global': {
|
|
8769
8940
|
':host': {
|
|
@@ -8818,93 +8989,6 @@ const getComponentCss$q = (isDisabled, hasCustomDropdown, hideLabel, state, them
|
|
|
8818
8989
|
});
|
|
8819
8990
|
};
|
|
8820
8991
|
|
|
8821
|
-
// TODO: Enforce order of slotted text, img
|
|
8822
|
-
const getComponentCss$p = (theme) => {
|
|
8823
|
-
return getCss({
|
|
8824
|
-
'@global': addImportantToEachRule({
|
|
8825
|
-
':host': {
|
|
8826
|
-
scrollMargin: '6px', // Aligns option when list is scrolled by navigating with keyboard
|
|
8827
|
-
...hostHiddenStyles,
|
|
8828
|
-
},
|
|
8829
|
-
'::slotted(img)': {
|
|
8830
|
-
height: fontLineHeight,
|
|
8831
|
-
borderRadius: borderRadiusSmall,
|
|
8832
|
-
},
|
|
8833
|
-
}),
|
|
8834
|
-
...getOptionStyles(theme),
|
|
8835
|
-
icon: {
|
|
8836
|
-
marginInlineStart: 'auto',
|
|
8837
|
-
},
|
|
8838
|
-
});
|
|
8839
|
-
};
|
|
8840
|
-
// TODO: Copied from multi-select and select-wrapper-dropdown, extract and reuse
|
|
8841
|
-
const getOptionStyles = (theme) => {
|
|
8842
|
-
const { primaryColor: primaryColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
8843
|
-
const { primaryColor, contrastHighColor, backgroundSurfaceColor, disabledColor, contrastLowColor } = getThemedColors(theme);
|
|
8844
|
-
const { highlightColor } = getHighContrastColors();
|
|
8845
|
-
return {
|
|
8846
|
-
option: {
|
|
8847
|
-
display: 'flex',
|
|
8848
|
-
// justifyContent: 'space-between', // TODO: Commenented out
|
|
8849
|
-
gap: '12px',
|
|
8850
|
-
padding: `${spacingStaticSmall} 12px`,
|
|
8851
|
-
flex: `1 0 calc(${fontLineHeight} + ${spacingStaticSmall} * 2)`,
|
|
8852
|
-
minHeight: `calc(${fontLineHeight} + ${spacingStaticSmall} * 2)`, // TODO: Added this line to preserve height for empty option
|
|
8853
|
-
color: contrastHighColor,
|
|
8854
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8855
|
-
color: contrastHighColorDark,
|
|
8856
|
-
}),
|
|
8857
|
-
cursor: 'pointer',
|
|
8858
|
-
textAlign: 'start',
|
|
8859
|
-
wordBreak: 'break-word',
|
|
8860
|
-
boxSizing: 'border-box',
|
|
8861
|
-
borderRadius: borderRadiusSmall,
|
|
8862
|
-
transition: `${getTransition('background-color')}, ${getTransition('color')}`,
|
|
8863
|
-
...getNoResultsOptionJssStyle(),
|
|
8864
|
-
...hoverMediaQuery({
|
|
8865
|
-
'&:not([aria-disabled]):not(.option--disabled):not([role=status]):hover': {
|
|
8866
|
-
color: isHighContrastMode ? highlightColor : primaryColor,
|
|
8867
|
-
background: contrastLowColor,
|
|
8868
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8869
|
-
color: isHighContrastMode ? highlightColor : primaryColorDark,
|
|
8870
|
-
background: contrastLowColorDark,
|
|
8871
|
-
}),
|
|
8872
|
-
},
|
|
8873
|
-
}),
|
|
8874
|
-
'&--selected': {
|
|
8875
|
-
cursor: 'default',
|
|
8876
|
-
pointerEvents: 'none',
|
|
8877
|
-
background: backgroundSurfaceColor,
|
|
8878
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8879
|
-
background: backgroundSurfaceColorDark,
|
|
8880
|
-
}),
|
|
8881
|
-
},
|
|
8882
|
-
'&--highlighted': {
|
|
8883
|
-
background: contrastLowColor,
|
|
8884
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8885
|
-
background: contrastLowColorDark,
|
|
8886
|
-
}),
|
|
8887
|
-
},
|
|
8888
|
-
'&--highlighted, &--selected': {
|
|
8889
|
-
color: isHighContrastMode ? highlightColor : primaryColor,
|
|
8890
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8891
|
-
color: isHighContrastMode ? highlightColor : primaryColorDark,
|
|
8892
|
-
}),
|
|
8893
|
-
},
|
|
8894
|
-
'&--disabled': {
|
|
8895
|
-
cursor: 'not-allowed',
|
|
8896
|
-
color: disabledColor,
|
|
8897
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8898
|
-
color: disabledColorDark,
|
|
8899
|
-
}),
|
|
8900
|
-
},
|
|
8901
|
-
'&--hidden': {
|
|
8902
|
-
display: 'none',
|
|
8903
|
-
},
|
|
8904
|
-
},
|
|
8905
|
-
};
|
|
8906
|
-
};
|
|
8907
|
-
|
|
8908
8992
|
const INTERNAL_SELECT_SLOT = 'internal-select';
|
|
8909
8993
|
|
|
8910
8994
|
const getComponentCss$o = (direction, isOpen, isDisabled, hideLabel, state, isWithinForm, isNativePopoverCase, theme) => {
|
|
@@ -8965,7 +9049,6 @@ const getComponentCss$o = (direction, isOpen, isDisabled, hideLabel, state, isWi
|
|
|
8965
9049
|
// TODO: Rename to JSSStyles
|
|
8966
9050
|
// TODO: use getSlottedTextFieldTextareaSelectStyles() instead an manipulate selectors like done with PIN Code or even better make it configurable as parameter
|
|
8967
9051
|
const getButtonStyles = (isDisabled, direction, isOpen, state, theme) => {
|
|
8968
|
-
const isDirectionDown = direction === 'down';
|
|
8969
9052
|
const { primaryColor, disabledColor, backgroundColor, contrastMediumColor } = getThemedColors(theme);
|
|
8970
9053
|
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, backgroundColor: backgroundColorDark, contrastMediumColor: contrastMediumColorDark, } = getThemedColors('dark');
|
|
8971
9054
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -9019,10 +9102,10 @@ const getButtonStyles = (isDisabled, direction, isOpen, state, theme) => {
|
|
|
9019
9102
|
border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`,
|
|
9020
9103
|
borderRadius: borderRadiusSmall,
|
|
9021
9104
|
...(isOpen && {
|
|
9022
|
-
[
|
|
9023
|
-
[
|
|
9024
|
-
[
|
|
9025
|
-
[
|
|
9105
|
+
['paddingBottom' ]: `calc(${formElementPaddingVertical} + 1px)`, // Add padding to keep same height when border changes
|
|
9106
|
+
['borderBottom' ]: addImportantToRule(`1px solid ${contrastMediumColor}`),
|
|
9107
|
+
['borderBottomLeftRadius' ]: 0,
|
|
9108
|
+
['borderBottomRightRadius' ]: 0,
|
|
9026
9109
|
}),
|
|
9027
9110
|
...(isDisabled && {
|
|
9028
9111
|
...getPlaceholderJssStyle({ color: disabledColor }),
|
|
@@ -9036,7 +9119,7 @@ const getButtonStyles = (isDisabled, direction, isOpen, state, theme) => {
|
|
|
9036
9119
|
background: backgroundColorDark,
|
|
9037
9120
|
border: `${borderWidthBase} solid ${isOpen ? primaryColorDark : formStateColorDark || contrastMediumColorDark}`,
|
|
9038
9121
|
...(isOpen && {
|
|
9039
|
-
[
|
|
9122
|
+
['borderBottom' ]: addImportantToRule(`1px solid ${contrastMediumColorDark}`),
|
|
9040
9123
|
}),
|
|
9041
9124
|
...(isDisabled && {
|
|
9042
9125
|
...getPlaceholderJssStyle({ color: disabledColorDark }),
|
|
@@ -9050,7 +9133,6 @@ const getButtonStyles = (isDisabled, direction, isOpen, state, theme) => {
|
|
|
9050
9133
|
// TODO: Rename to JSSStyles
|
|
9051
9134
|
// TODO: Copied from multi-select, extract and use in select and multi-select
|
|
9052
9135
|
const getListStyles = (isOpen, direction, theme) => {
|
|
9053
|
-
const isDirectionDown = direction === 'down';
|
|
9054
9136
|
const { primaryColor, backgroundColor } = getThemedColors(theme);
|
|
9055
9137
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark } = getThemedColors('dark');
|
|
9056
9138
|
return {
|
|
@@ -9065,17 +9147,17 @@ const getListStyles = (isOpen, direction, theme) => {
|
|
|
9065
9147
|
// TODO: Inset inline 0
|
|
9066
9148
|
left: 0,
|
|
9067
9149
|
right: 0,
|
|
9068
|
-
[
|
|
9150
|
+
['top' ]: '100%',
|
|
9069
9151
|
boxSizing: 'border-box',
|
|
9070
|
-
maxHeight: `${8.5 * (
|
|
9152
|
+
maxHeight: `${8.5 * (OPTION_HEIGHT + 8) + 6 + 2}px`, // 8.5 options * option height + 8px gap + additional spacing (6px = padding, 2px = border)
|
|
9071
9153
|
overflowY: 'auto',
|
|
9072
9154
|
WebkitOverflowScrolling: 'touch',
|
|
9073
9155
|
background: backgroundColor,
|
|
9074
9156
|
border: `2px solid ${primaryColor}`,
|
|
9075
|
-
[
|
|
9157
|
+
['borderTop' ]: 'none',
|
|
9076
9158
|
borderRadius: borderRadiusSmall,
|
|
9077
|
-
[
|
|
9078
|
-
[
|
|
9159
|
+
['borderTopLeftRadius' ]: 0,
|
|
9160
|
+
['borderTopRightRadius' ]: 0,
|
|
9079
9161
|
scrollbarWidth: 'thin', // firefox
|
|
9080
9162
|
scrollbarColor: 'auto', // firefox
|
|
9081
9163
|
transition: getTransition('border-color'),
|
|
@@ -9824,6 +9906,7 @@ const getThemedBackgroundColor = (tagColor, themedColors) => {
|
|
|
9824
9906
|
const colorMap = {
|
|
9825
9907
|
'background-base': themedColors.backgroundColor,
|
|
9826
9908
|
'background-surface': themedColors.backgroundSurfaceColor,
|
|
9909
|
+
'background-frosted': themedColors.backgroundFrostedColor,
|
|
9827
9910
|
primary: themedColors.primaryColor,
|
|
9828
9911
|
'notification-info-soft': themedColors.infoSoftColor,
|
|
9829
9912
|
'notification-warning-soft': themedColors.warningSoftColor,
|
|
@@ -9912,6 +9995,9 @@ const getThemedBackgroundHoverColor = (tagColor, themedColors, theme) => {
|
|
|
9912
9995
|
const colorMap = {
|
|
9913
9996
|
'background-base': themedColors[`backgroundColor${keySuffix}`],
|
|
9914
9997
|
'background-surface': themedColors[`backgroundSurfaceColor${keySuffix}`],
|
|
9998
|
+
'background-frosted': isDark
|
|
9999
|
+
? lighten(themedColors.backgroundFrostedColor)
|
|
10000
|
+
: darken(themedColors.backgroundFrostedColor),
|
|
9915
10001
|
primary: isDark ? themedColors.contrastHighColorLighten : themedColors.contrastHighColor,
|
|
9916
10002
|
'notification-info-soft': themedColors[`infoSoftColor${keySuffix}`],
|
|
9917
10003
|
'notification-success-soft': themedColors[`successSoftColor${keySuffix}`],
|
|
@@ -9921,50 +10007,50 @@ const getThemedBackgroundHoverColor = (tagColor, themedColors, theme) => {
|
|
|
9921
10007
|
return colorMap[tagColor];
|
|
9922
10008
|
};
|
|
9923
10009
|
|
|
9924
|
-
const getColors = (
|
|
10010
|
+
const getColors = (tagColor, theme) => {
|
|
10011
|
+
const themedColors = getThemedColors(theme);
|
|
9925
10012
|
const { primaryColor } = tagColor === 'primary' ? getInvertedThemedColors(theme) : themedColors;
|
|
9926
10013
|
return {
|
|
9927
|
-
primaryColor,
|
|
10014
|
+
textColor: primaryColor,
|
|
9928
10015
|
backgroundColor: getThemedBackgroundColor(tagColor, themedColors),
|
|
9929
10016
|
backgroundHoverColor: getThemedBackgroundHoverColor(tagColor, themedColors, theme),
|
|
9930
10017
|
};
|
|
9931
10018
|
};
|
|
9932
|
-
const getComponentCss$8 = (tagColor, isFocusable, theme) => {
|
|
9933
|
-
const
|
|
9934
|
-
const
|
|
9935
|
-
const
|
|
9936
|
-
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundHoverColor: backgroundHoverColorDark, } = getColors(themedColorsDark, tagColor, 'dark');
|
|
10019
|
+
const getComponentCss$8 = (tagColor, compact, isFocusable, hasIcon, theme) => {
|
|
10020
|
+
const { textColor, backgroundColor, backgroundHoverColor } = getColors(tagColor, theme);
|
|
10021
|
+
const { textColor: textColorDark, backgroundColor: backgroundColorDark, backgroundHoverColor: backgroundHoverColorDark, } = getColors(tagColor, 'dark');
|
|
10022
|
+
const isBackgroundFrosted = tagColor === 'background-frosted';
|
|
9937
10023
|
return getCss({
|
|
9938
10024
|
'@global': {
|
|
9939
10025
|
':host': {
|
|
9940
10026
|
display: 'inline-flex',
|
|
9941
|
-
verticalAlign: 'top',
|
|
9942
|
-
whiteSpace: 'nowrap',
|
|
10027
|
+
verticalAlign: 'top', // TODO: should we set this CSS style at all?
|
|
10028
|
+
whiteSpace: 'nowrap', // TODO: should either be exposed by a controlled CSS variable or a component prop or whitelist as supported custom styles
|
|
9943
10029
|
...addImportantToEachRule({
|
|
9944
10030
|
...colorSchemeStyles,
|
|
9945
10031
|
...hostHiddenStyles,
|
|
9946
10032
|
}),
|
|
9947
10033
|
},
|
|
9948
10034
|
span: {
|
|
10035
|
+
position: 'relative', // necessary as relative anchor to ensure click area of optional slotted focusable element is in sync
|
|
9949
10036
|
display: 'flex',
|
|
9950
10037
|
gap: '2px',
|
|
9951
|
-
|
|
9952
|
-
position: 'relative',
|
|
9953
|
-
padding: '4px 9px',
|
|
10038
|
+
padding: compact ? '1px 6px' : `${spacingStaticXSmall} 9px`,
|
|
9954
10039
|
borderRadius: borderRadiusSmall,
|
|
9955
|
-
background: backgroundColor,
|
|
9956
|
-
color: primaryColor,
|
|
9957
10040
|
font: textXSmallStyle.font,
|
|
10041
|
+
color: textColor,
|
|
10042
|
+
background: backgroundColor,
|
|
10043
|
+
...(isBackgroundFrosted && frostedGlassStyle),
|
|
9958
10044
|
...(isHighContrastMode && {
|
|
9959
10045
|
outline: '1px solid transparent',
|
|
9960
10046
|
}),
|
|
10047
|
+
transition: `${getTransition('color')}, ${getTransition('background-color')}, ${getTransition('backdrop-filter')}`, // transition style should always be applied to have a smooth color change in case color prop gets updated during runtime
|
|
9961
10048
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
10049
|
+
color: textColorDark,
|
|
9962
10050
|
background: backgroundColorDark,
|
|
9963
|
-
color: primaryColorDark,
|
|
9964
10051
|
}),
|
|
9965
10052
|
...(isFocusable &&
|
|
9966
10053
|
hoverMediaQuery({
|
|
9967
|
-
transition: getTransition('background-color'),
|
|
9968
10054
|
'&:hover': {
|
|
9969
10055
|
background: backgroundHoverColor,
|
|
9970
10056
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
@@ -9975,17 +10061,11 @@ const getComponentCss$8 = (tagColor, isFocusable, theme) => {
|
|
|
9975
10061
|
},
|
|
9976
10062
|
'::slotted': addImportantToEachRule({
|
|
9977
10063
|
'&(a),&(button)': {
|
|
9978
|
-
|
|
9979
|
-
display: 'inline',
|
|
9980
|
-
position: 'static',
|
|
10064
|
+
all: 'unset', // resets any ua-style + custom style set in light dom
|
|
9981
10065
|
textDecoration: 'underline',
|
|
9982
10066
|
cursor: 'pointer',
|
|
9983
10067
|
font: 'inherit',
|
|
9984
10068
|
color: 'inherit',
|
|
9985
|
-
WebkitAppearance: 'none', // iOS safari
|
|
9986
|
-
appearance: 'none',
|
|
9987
|
-
border: 0,
|
|
9988
|
-
textAlign: 'start',
|
|
9989
10069
|
},
|
|
9990
10070
|
'&(a)::before,&(button)::before': {
|
|
9991
10071
|
content: '""',
|
|
@@ -10000,15 +10080,15 @@ const getComponentCss$8 = (tagColor, isFocusable, theme) => {
|
|
|
10000
10080
|
},
|
|
10001
10081
|
}),
|
|
10002
10082
|
},
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10083
|
+
...(hasIcon && {
|
|
10084
|
+
icon: {
|
|
10085
|
+
marginInlineStart: '-2px', // compensate white space of svg icon and optimize visual alignment
|
|
10086
|
+
...(!isHighContrastMode &&
|
|
10087
|
+
tagColor === 'primary' && {
|
|
10008
10088
|
filter: 'invert(1)',
|
|
10009
10089
|
}),
|
|
10010
|
-
}
|
|
10011
|
-
},
|
|
10090
|
+
},
|
|
10091
|
+
}),
|
|
10012
10092
|
});
|
|
10013
10093
|
};
|
|
10014
10094
|
|
|
@@ -10402,58 +10482,59 @@ const getComponentCss = (size, theme) => {
|
|
|
10402
10482
|
});
|
|
10403
10483
|
};
|
|
10404
10484
|
|
|
10405
|
-
exports.getAccordionCss = getComponentCss$
|
|
10406
|
-
exports.getBannerCss = getComponentCss$
|
|
10407
|
-
exports.getButtonCss = getComponentCss$
|
|
10408
|
-
exports.getButtonGroupCss = getComponentCss$
|
|
10409
|
-
exports.getButtonPureCss = getComponentCss$
|
|
10410
|
-
exports.getButtonTileCss = getComponentCss$
|
|
10411
|
-
exports.getCanvasCss = getComponentCss$
|
|
10412
|
-
exports.getCarouselCss = getComponentCss
|
|
10413
|
-
exports.getCheckboxWrapperCss = getComponentCss
|
|
10414
|
-
exports.getContentWrapperCss = getComponentCss$
|
|
10415
|
-
exports.getCrestCss = getComponentCss$
|
|
10416
|
-
exports.getDisplayCss = getComponentCss$
|
|
10417
|
-
exports.getDividerCss = getComponentCss$
|
|
10418
|
-
exports.getFieldsetCss = getComponentCss$
|
|
10419
|
-
exports.getFieldsetWrapperCss = getComponentCss$
|
|
10420
|
-
exports.getFlexCss = getComponentCss$
|
|
10421
|
-
exports.getFlexItemCss = getComponentCss$
|
|
10422
|
-
exports.getFlyoutCss = getComponentCss$
|
|
10423
|
-
exports.getFlyoutMultilevelCss = getComponentCss$
|
|
10424
|
-
exports.getFlyoutMultilevelItemCss = getComponentCss$
|
|
10485
|
+
exports.getAccordionCss = getComponentCss$17;
|
|
10486
|
+
exports.getBannerCss = getComponentCss$16;
|
|
10487
|
+
exports.getButtonCss = getComponentCss$12;
|
|
10488
|
+
exports.getButtonGroupCss = getComponentCss$15;
|
|
10489
|
+
exports.getButtonPureCss = getComponentCss$14;
|
|
10490
|
+
exports.getButtonTileCss = getComponentCss$13;
|
|
10491
|
+
exports.getCanvasCss = getComponentCss$11;
|
|
10492
|
+
exports.getCarouselCss = getComponentCss$10;
|
|
10493
|
+
exports.getCheckboxWrapperCss = getComponentCss$$;
|
|
10494
|
+
exports.getContentWrapperCss = getComponentCss$_;
|
|
10495
|
+
exports.getCrestCss = getComponentCss$Z;
|
|
10496
|
+
exports.getDisplayCss = getComponentCss$Y;
|
|
10497
|
+
exports.getDividerCss = getComponentCss$X;
|
|
10498
|
+
exports.getFieldsetCss = getComponentCss$V;
|
|
10499
|
+
exports.getFieldsetWrapperCss = getComponentCss$W;
|
|
10500
|
+
exports.getFlexCss = getComponentCss$T;
|
|
10501
|
+
exports.getFlexItemCss = getComponentCss$U;
|
|
10502
|
+
exports.getFlyoutCss = getComponentCss$Q;
|
|
10503
|
+
exports.getFlyoutMultilevelCss = getComponentCss$S;
|
|
10504
|
+
exports.getFlyoutMultilevelItemCss = getComponentCss$R;
|
|
10425
10505
|
exports.getFunctionalComponentLabelStyles = getFunctionalComponentLabelStyles;
|
|
10426
10506
|
exports.getFunctionalComponentLoadingMessageStyles = getFunctionalComponentLoadingMessageStyles;
|
|
10427
10507
|
exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
|
|
10428
10508
|
exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
|
|
10429
|
-
exports.getGridCss = getComponentCss$
|
|
10430
|
-
exports.getGridItemCss = getComponentCss$
|
|
10431
|
-
exports.getHeadingCss = getComponentCss$
|
|
10432
|
-
exports.getHeadlineCss = getComponentCss$
|
|
10433
|
-
exports.getIconCss = getComponentCss$
|
|
10434
|
-
exports.getInlineNotificationCss = getComponentCss$
|
|
10435
|
-
exports.getLinkCss = getComponentCss$
|
|
10436
|
-
exports.getLinkPureCss = getComponentCss$
|
|
10437
|
-
exports.getLinkSocialCss = getComponentCss$
|
|
10438
|
-
exports.getLinkTileCss = getComponentCss$
|
|
10439
|
-
exports.getLinkTileModelSignatureCss = getComponentCss$
|
|
10440
|
-
exports.getLinkTileProductCss = getComponentCss$
|
|
10441
|
-
exports.getMarqueCss = getComponentCss$
|
|
10442
|
-
exports.getModalCss = getComponentCss$
|
|
10443
|
-
exports.getModelSignatureCss = getComponentCss$
|
|
10444
|
-
exports.getMultiSelectCss = getComponentCss$
|
|
10445
|
-
exports.getMultiSelectOptionCss = getComponentCss$
|
|
10446
|
-
exports.
|
|
10447
|
-
exports.
|
|
10448
|
-
exports.
|
|
10449
|
-
exports.
|
|
10450
|
-
exports.
|
|
10451
|
-
exports.
|
|
10452
|
-
exports.
|
|
10509
|
+
exports.getGridCss = getComponentCss$O;
|
|
10510
|
+
exports.getGridItemCss = getComponentCss$P;
|
|
10511
|
+
exports.getHeadingCss = getComponentCss$N;
|
|
10512
|
+
exports.getHeadlineCss = getComponentCss$M;
|
|
10513
|
+
exports.getIconCss = getComponentCss$L;
|
|
10514
|
+
exports.getInlineNotificationCss = getComponentCss$K;
|
|
10515
|
+
exports.getLinkCss = getComponentCss$I;
|
|
10516
|
+
exports.getLinkPureCss = getComponentCss$J;
|
|
10517
|
+
exports.getLinkSocialCss = getComponentCss$I;
|
|
10518
|
+
exports.getLinkTileCss = getComponentCss$F;
|
|
10519
|
+
exports.getLinkTileModelSignatureCss = getComponentCss$H;
|
|
10520
|
+
exports.getLinkTileProductCss = getComponentCss$G;
|
|
10521
|
+
exports.getMarqueCss = getComponentCss$E;
|
|
10522
|
+
exports.getModalCss = getComponentCss$D;
|
|
10523
|
+
exports.getModelSignatureCss = getComponentCss$C;
|
|
10524
|
+
exports.getMultiSelectCss = getComponentCss$A;
|
|
10525
|
+
exports.getMultiSelectOptionCss = getComponentCss$B;
|
|
10526
|
+
exports.getOptgroupCss = getComponentCss$y;
|
|
10527
|
+
exports.getPaginationCss = getComponentCss$x;
|
|
10528
|
+
exports.getPinCodeCss = getComponentCss$w;
|
|
10529
|
+
exports.getPopoverCss = getComponentCss$v;
|
|
10530
|
+
exports.getRadioButtonWrapperCss = getComponentCss$u;
|
|
10531
|
+
exports.getScrollerCss = getComponentCss$t;
|
|
10532
|
+
exports.getSegmentedControlCss = getComponentCss$r;
|
|
10533
|
+
exports.getSegmentedControlItemCss = getComponentCss$s;
|
|
10453
10534
|
exports.getSelectCss = getComponentCss$o;
|
|
10454
|
-
exports.getSelectOptionCss = getComponentCss$
|
|
10455
|
-
exports.getSelectWrapperCss = getComponentCss$
|
|
10456
|
-
exports.getSelectWrapperDropdownCss = getComponentCss$
|
|
10535
|
+
exports.getSelectOptionCss = getComponentCss$z;
|
|
10536
|
+
exports.getSelectWrapperCss = getComponentCss$p;
|
|
10537
|
+
exports.getSelectWrapperDropdownCss = getComponentCss$q;
|
|
10457
10538
|
exports.getSpinnerCss = getComponentCss$n;
|
|
10458
10539
|
exports.getStepperHorizontalCss = getComponentCss$l;
|
|
10459
10540
|
exports.getStepperHorizontalItemCss = getComponentCss$m;
|