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