@porsche-design-system/components-react 3.2.0 → 3.3.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 +36 -0
- package/esm/hooks.js +4 -4
- package/esm/utils.js +3 -3
- package/hooks.d.ts +2 -2
- package/hooks.js +4 -4
- package/lib/components/accordion.wrapper.d.ts +9 -9
- package/lib/components/banner.wrapper.d.ts +9 -9
- package/lib/components/button-group.wrapper.d.ts +2 -2
- package/lib/components/button-pure.wrapper.d.ts +14 -14
- package/lib/components/button-tile.wrapper.d.ts +13 -13
- package/lib/components/button.wrapper.d.ts +10 -10
- package/lib/components/carousel.wrapper.d.ts +16 -16
- package/lib/components/checkbox-wrapper.wrapper.d.ts +7 -7
- package/lib/components/content-wrapper.wrapper.d.ts +4 -4
- package/lib/components/crest.wrapper.d.ts +4 -4
- package/lib/components/display.wrapper.d.ts +7 -7
- package/lib/components/divider.wrapper.d.ts +5 -5
- package/lib/components/fieldset-wrapper.wrapper.d.ts +7 -7
- package/lib/components/fieldset.wrapper.d.ts +7 -7
- package/lib/components/flex-item.wrapper.d.ts +7 -7
- package/lib/components/flex.wrapper.d.ts +7 -7
- package/lib/components/flyout.wrapper.d.ts +5 -5
- package/lib/components/grid-item.wrapper.d.ts +3 -3
- package/lib/components/grid.wrapper.d.ts +4 -4
- package/lib/components/heading.wrapper.d.ts +7 -7
- package/lib/components/headline.wrapper.d.ts +7 -7
- package/lib/components/icon.wrapper.d.ts +10 -10
- package/lib/components/inline-notification.wrapper.d.ts +12 -12
- package/lib/components/link-pure.wrapper.d.ts +16 -16
- package/lib/components/link-social.wrapper.d.ts +8 -8
- package/lib/components/link-tile-model-signature.wrapper.d.ts +7 -7
- package/lib/components/link-tile.wrapper.d.ts +11 -11
- package/lib/components/link.wrapper.d.ts +11 -11
- package/lib/components/marque.wrapper.d.ts +7 -7
- package/lib/components/modal.wrapper.d.ts +9 -9
- package/lib/components/model-signature.wrapper.d.ts +5 -5
- package/lib/components/pagination.wrapper.d.ts +12 -12
- package/lib/components/popover.wrapper.d.ts +5 -5
- package/lib/components/radio-button-wrapper.wrapper.d.ts +6 -6
- package/lib/components/scroller.wrapper.d.ts +9 -9
- package/lib/components/segmented-control-item.wrapper.d.ts +5 -5
- package/lib/components/segmented-control.wrapper.d.ts +6 -6
- package/lib/components/select-wrapper.wrapper.d.ts +10 -10
- package/lib/components/spinner.wrapper.d.ts +4 -4
- package/lib/components/stepper-horizontal-item.wrapper.d.ts +3 -3
- package/lib/components/stepper-horizontal.wrapper.d.ts +5 -5
- package/lib/components/switch.wrapper.d.ts +10 -10
- package/lib/components/table-body.wrapper.d.ts +1 -1
- package/lib/components/table-cell.wrapper.d.ts +2 -2
- package/lib/components/table-head-cell.wrapper.d.ts +4 -4
- package/lib/components/table-head-row.wrapper.d.ts +1 -1
- package/lib/components/table-head.wrapper.d.ts +1 -1
- package/lib/components/table-row.wrapper.d.ts +1 -1
- package/lib/components/table.wrapper.d.ts +5 -5
- package/lib/components/tabs-bar.wrapper.d.ts +8 -8
- package/lib/components/tabs-item.wrapper.d.ts +1 -1
- package/lib/components/tabs.wrapper.d.ts +9 -9
- package/lib/components/tag-dismissible.wrapper.d.ts +5 -5
- package/lib/components/tag.wrapper.d.ts +5 -5
- package/lib/components/text-field-wrapper.wrapper.d.ts +15 -15
- package/lib/components/text-list-item.wrapper.d.ts +1 -1
- package/lib/components/text-list.wrapper.d.ts +5 -5
- package/lib/components/text.wrapper.d.ts +8 -8
- package/lib/components/textarea-wrapper.wrapper.d.ts +9 -9
- package/lib/components/toast.wrapper.d.ts +2 -2
- package/lib/components/wordmark.wrapper.d.ts +6 -6
- package/lib/types.d.ts +27 -2
- package/package.json +2 -2
- package/provider.d.ts +2 -2
- package/ssr/components/dist/styles/esm/styles-entry.js +2481 -939
- package/ssr/components/dist/utils/esm/utils-entry.js +48 -48
- package/ssr/components-react/projects/react-ssr-wrapper/src/hooks.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button-group.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/crest.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/flex-item.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/flex.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/grid-item.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/grid.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/marque.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control-item.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal-item.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-body.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-cell.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-cell.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-row.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-head.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table-row.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-item.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tag-dismissible.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/tag.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/toast.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/wordmark.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +9 -6
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +3 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.js +10 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +5 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +3 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +5 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +3 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +6 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +4 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +4 -6
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +68 -8
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +5 -5
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +11 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +2 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +18 -9
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +6 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +2 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/splitChildren.js +2 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/utils.js +3 -3
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +2481 -939
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +49 -48
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-group.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-tile.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/crest.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flex-item.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flex.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/grid-item.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/grid.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/headline.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/inline-notification.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-social.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-model-signature.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/marque.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/modal.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control-item.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/segmented-control.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal-item.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/switch.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-body.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-cell.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-cell.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-head-row.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-head.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table-row.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-item.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tag-dismissible.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tag.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/toast.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/wordmark.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +9 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.js +10 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +5 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +6 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.js +4 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +68 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +5 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +11 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +2 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +18 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.js +6 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.js +2 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/splitChildren.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/utils.js +3 -3
- package/ssr/hooks.d.ts +2 -2
- package/ssr/lib/components/accordion.wrapper.d.ts +1 -1
- package/ssr/lib/components/banner.wrapper.d.ts +1 -1
- package/ssr/lib/components/button-group.wrapper.d.ts +1 -1
- package/ssr/lib/components/button-pure.wrapper.d.ts +1 -1
- package/ssr/lib/components/button-tile.wrapper.d.ts +1 -1
- package/ssr/lib/components/button.wrapper.d.ts +1 -1
- package/ssr/lib/components/carousel.wrapper.d.ts +1 -1
- package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +1 -1
- package/ssr/lib/components/content-wrapper.wrapper.d.ts +1 -1
- package/ssr/lib/components/crest.wrapper.d.ts +1 -1
- package/ssr/lib/components/display.wrapper.d.ts +1 -1
- package/ssr/lib/components/divider.wrapper.d.ts +1 -1
- package/ssr/lib/components/fieldset-wrapper.wrapper.d.ts +1 -1
- package/ssr/lib/components/fieldset.wrapper.d.ts +1 -1
- package/ssr/lib/components/flex-item.wrapper.d.ts +1 -1
- package/ssr/lib/components/flex.wrapper.d.ts +1 -1
- package/ssr/lib/components/flyout.wrapper.d.ts +1 -1
- package/ssr/lib/components/grid-item.wrapper.d.ts +1 -1
- package/ssr/lib/components/grid.wrapper.d.ts +1 -1
- package/ssr/lib/components/heading.wrapper.d.ts +1 -1
- package/ssr/lib/components/headline.wrapper.d.ts +1 -1
- package/ssr/lib/components/icon.wrapper.d.ts +3 -3
- package/ssr/lib/components/inline-notification.wrapper.d.ts +1 -1
- package/ssr/lib/components/link-pure.wrapper.d.ts +1 -1
- package/ssr/lib/components/link-social.wrapper.d.ts +1 -1
- package/ssr/lib/components/link-tile-model-signature.wrapper.d.ts +1 -1
- package/ssr/lib/components/link-tile.wrapper.d.ts +1 -1
- package/ssr/lib/components/link.wrapper.d.ts +1 -1
- package/ssr/lib/components/marque.wrapper.d.ts +1 -1
- package/ssr/lib/components/modal.wrapper.d.ts +1 -1
- package/ssr/lib/components/model-signature.wrapper.d.ts +1 -1
- package/ssr/lib/components/pagination.wrapper.d.ts +1 -1
- package/ssr/lib/components/popover.wrapper.d.ts +1 -1
- package/ssr/lib/components/radio-button-wrapper.wrapper.d.ts +1 -1
- package/ssr/lib/components/scroller.wrapper.d.ts +1 -1
- package/ssr/lib/components/segmented-control-item.wrapper.d.ts +1 -1
- package/ssr/lib/components/segmented-control.wrapper.d.ts +1 -1
- package/ssr/lib/components/select-wrapper-dropdown.wrapper.d.ts +1 -1
- package/ssr/lib/components/select-wrapper.wrapper.d.ts +1 -1
- package/ssr/lib/components/spinner.wrapper.d.ts +1 -1
- package/ssr/lib/components/stepper-horizontal-item.wrapper.d.ts +1 -1
- package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +1 -1
- package/ssr/lib/components/switch.wrapper.d.ts +1 -1
- package/ssr/lib/components/table-body.wrapper.d.ts +1 -1
- package/ssr/lib/components/table-cell.wrapper.d.ts +1 -1
- package/ssr/lib/components/table-head-cell.wrapper.d.ts +1 -1
- package/ssr/lib/components/table-head-row.wrapper.d.ts +1 -1
- package/ssr/lib/components/table-head.wrapper.d.ts +1 -1
- package/ssr/lib/components/table-row.wrapper.d.ts +1 -1
- package/ssr/lib/components/table.wrapper.d.ts +1 -1
- package/ssr/lib/components/tabs-bar.wrapper.d.ts +1 -1
- package/ssr/lib/components/tabs-item.wrapper.d.ts +1 -1
- package/ssr/lib/components/tabs.wrapper.d.ts +1 -1
- package/ssr/lib/components/tag-dismissible.wrapper.d.ts +1 -1
- package/ssr/lib/components/tag.wrapper.d.ts +1 -1
- package/ssr/lib/components/text-field-wrapper.wrapper.d.ts +1 -1
- package/ssr/lib/components/text-list-item.wrapper.d.ts +1 -1
- package/ssr/lib/components/text-list.wrapper.d.ts +1 -1
- package/ssr/lib/components/text.wrapper.d.ts +1 -1
- package/ssr/lib/components/textarea-wrapper.wrapper.d.ts +1 -1
- package/ssr/lib/components/toast.wrapper.d.ts +1 -1
- package/ssr/lib/components/wordmark.wrapper.d.ts +1 -1
- package/ssr/lib/dsr-components/accordion.d.ts +0 -3
- package/ssr/lib/dsr-components/tabs-bar.d.ts +1 -2
- package/ssr/lib/types.d.ts +27 -2
- package/ssr/provider.d.ts +2 -2
- package/ssr/utils.d.ts +1 -1
- package/utils.d.ts +1 -1
- package/utils.js +3 -3
- package/ssr/lib/dsr-components/toast-item.d.ts +0 -5
|
@@ -16,7 +16,7 @@ hasWindow &&
|
|
|
16
16
|
.filter((mutation) => mutation.oldValue !== mutation.target.getAttribute(mutation.attributeName))
|
|
17
17
|
// remove duplicates so we execute callback only once per node
|
|
18
18
|
.filter((mutation, idx, arr) => arr.findIndex((m) => m.target === mutation.target) === idx)
|
|
19
|
-
.forEach((mutation) =>
|
|
19
|
+
.forEach((mutation) => attributeMutationMap.get(mutation.target)?.());
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
const parseJSON = (prop) => {
|
|
@@ -28,7 +28,7 @@ const parseJSON = (prop) => {
|
|
|
28
28
|
.replace(/[\s"]?([a-z]+)[\s"]?:([^//])/g, '"$1":$2') // wrap keys in double quotes if they don't have them but ignore potential urls
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
catch
|
|
31
|
+
catch {
|
|
32
32
|
// prop is string, e.g. "block" or "inline"
|
|
33
33
|
return prop;
|
|
34
34
|
}
|
|
@@ -308,7 +308,7 @@ const textLargeStyle = {
|
|
|
308
308
|
const mediaQueries = Object.values(breakpoint).map((v) => `(min-width:${v}px)`);
|
|
309
309
|
hasWindow && window.matchMedia ? mediaQueries.map(window.matchMedia) : [];
|
|
310
310
|
|
|
311
|
-
Object.entries(breakpoint).reduce((result, [key, val]) => (
|
|
311
|
+
Object.entries(breakpoint).reduce((result, [key, val]) => ({ ...result, [`${val}px`]: key }), {});
|
|
312
312
|
|
|
313
313
|
const hasVisibleIcon = (iconName, iconSource) => {
|
|
314
314
|
return iconName !== 'none' || !!iconSource;
|
|
@@ -324,7 +324,7 @@ hasWindow &&
|
|
|
324
324
|
// remove duplicates so we execute callback only once per node
|
|
325
325
|
.filter((mutation, idx, arr) => arr.findIndex((m) => m.target === mutation.target) === idx)
|
|
326
326
|
// find node in map that contains the mutated element to find and invoke its callback
|
|
327
|
-
.forEach((mutation) =>
|
|
327
|
+
.forEach((mutation) => childrenMutationMap.get(mapKeys.find((node) => node.contains(mutation.target)))?.());
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
|
|
@@ -3751,7 +3751,7 @@ const schemeHighContrast = {
|
|
|
3751
3751
|
linkColor: 'LinkText',
|
|
3752
3752
|
};
|
|
3753
3753
|
const getThemedColors = (theme) => {
|
|
3754
|
-
return isHighContrastMode ?
|
|
3754
|
+
return isHighContrastMode ? { ...themes[theme], ...schemeHighContrastMerged } : themes[theme];
|
|
3755
3755
|
};
|
|
3756
3756
|
const getHighContrastColors = () => {
|
|
3757
3757
|
return schemeHighContrast;
|
|
@@ -3796,7 +3796,14 @@ const getResetInitialStylesForSlottedAnchor = {
|
|
|
3796
3796
|
};
|
|
3797
3797
|
const focusPseudoJssStyle = {
|
|
3798
3798
|
outline: 0,
|
|
3799
|
-
'&:focus::before':
|
|
3799
|
+
'&:focus::before': {
|
|
3800
|
+
content: '""',
|
|
3801
|
+
position: 'absolute',
|
|
3802
|
+
...getInsetJssStyle(),
|
|
3803
|
+
borderRadius: '1px',
|
|
3804
|
+
outline: `${borderWidthBase} solid ${themeLightStateFocus}`,
|
|
3805
|
+
outlineOffset: '2px',
|
|
3806
|
+
},
|
|
3800
3807
|
'&:focus:not(:focus-visible)::before': {
|
|
3801
3808
|
outline: 0,
|
|
3802
3809
|
},
|
|
@@ -3814,7 +3821,13 @@ const getHiddenTextJssStyle = (isHidden = true, isShownJssStyle) => isHidden
|
|
|
3814
3821
|
height: '1px',
|
|
3815
3822
|
textIndent: '-999999px',
|
|
3816
3823
|
}
|
|
3817
|
-
:
|
|
3824
|
+
: {
|
|
3825
|
+
position: 'static',
|
|
3826
|
+
width: 'auto',
|
|
3827
|
+
height: 'auto',
|
|
3828
|
+
textIndent: 0,
|
|
3829
|
+
...isShownJssStyle,
|
|
3830
|
+
};
|
|
3818
3831
|
const getBackfaceVisibilityJssStyle = () => ({
|
|
3819
3832
|
backfaceVisibility: 'hidden',
|
|
3820
3833
|
WebkitBackfaceVisibility: 'hidden',
|
|
@@ -3829,12 +3842,24 @@ const getBackfaceVisibilityJssStyle = () => ({
|
|
|
3829
3842
|
const getFrostedGlassBackgroundJssStyles = (isVisible, duration, timingFn = 'cubic-bezier(.16,1,.3,1)') => {
|
|
3830
3843
|
return {
|
|
3831
3844
|
// workaround via pseudo element to fix stacking (black) background in safari
|
|
3832
|
-
'&::before':
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3845
|
+
'&::before': {
|
|
3846
|
+
content: '""',
|
|
3847
|
+
position: 'fixed',
|
|
3848
|
+
...getInsetJssStyle(),
|
|
3849
|
+
background: themeDarkBackgroundShading,
|
|
3850
|
+
pointerEvents: 'none',
|
|
3851
|
+
...(isVisible
|
|
3852
|
+
? {
|
|
3853
|
+
opacity: 1,
|
|
3854
|
+
...frostedGlassStyle,
|
|
3855
|
+
}
|
|
3856
|
+
: {
|
|
3857
|
+
opacity: 0,
|
|
3858
|
+
backdropFilter: 'blur(0px)',
|
|
3859
|
+
WebkitBackdropFilter: 'blur(0px)',
|
|
3860
|
+
}),
|
|
3861
|
+
transition: `opacity ${duration} ${timingFn}, backdrop-filter ${duration} ${timingFn}, --webkit-backdrop-filter ${duration} ${timingFn}`,
|
|
3862
|
+
},
|
|
3838
3863
|
};
|
|
3839
3864
|
};
|
|
3840
3865
|
|
|
@@ -3879,7 +3904,7 @@ const supportsConstructableStylesheets = () => {
|
|
|
3879
3904
|
try {
|
|
3880
3905
|
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
3881
3906
|
}
|
|
3882
|
-
catch
|
|
3907
|
+
catch {
|
|
3883
3908
|
return false;
|
|
3884
3909
|
}
|
|
3885
3910
|
};
|
|
@@ -3893,9 +3918,11 @@ const buildResponsiveStyles = (rawValue, getJssStyle) => {
|
|
|
3893
3918
|
// base styles are applied on root object, responsive styles are nested within
|
|
3894
3919
|
// hence it is used as the initial object within reduce function
|
|
3895
3920
|
.filter((key) => key !== 'base')
|
|
3896
|
-
.reduce((result, breakpointValue) => (
|
|
3921
|
+
.reduce((result, breakpointValue) => ({
|
|
3922
|
+
...result,
|
|
3897
3923
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
3898
|
-
[getMediaQueryMin(breakpointValue)]: getJssStyle(value[breakpointValue])
|
|
3924
|
+
[getMediaQueryMin(breakpointValue)]: getJssStyle(value[breakpointValue]),
|
|
3925
|
+
}), getJssStyle(value.base))
|
|
3899
3926
|
: getJssStyle(value);
|
|
3900
3927
|
};
|
|
3901
3928
|
const isObject = (obj) => typeof obj === 'object' && !Array.isArray(obj);
|
|
@@ -3932,7 +3959,7 @@ const formatObjectOutput = (value) => {
|
|
|
3932
3959
|
.replace(/^"(.+)"$/, '$1'); // remove wrapping double quotes
|
|
3933
3960
|
};
|
|
3934
3961
|
'value, ' +
|
|
3935
|
-
formatObjectOutput(breakpoints.reduce((prev, key) => (
|
|
3962
|
+
formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {})).replace(/"/g, '');
|
|
3936
3963
|
|
|
3937
3964
|
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
3938
3965
|
|
|
@@ -3940,34 +3967,65 @@ const getComponentCss$Z = (size, compact, open, theme) => {
|
|
|
3940
3967
|
const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
|
|
3941
3968
|
return getCss({
|
|
3942
3969
|
'@global': {
|
|
3943
|
-
':host': addImportantToEachRule(
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
})
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
'
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3970
|
+
':host': addImportantToEachRule({
|
|
3971
|
+
display: 'block',
|
|
3972
|
+
...(!compact && {
|
|
3973
|
+
borderBottom: `1px solid ${contrastLowColor}`,
|
|
3974
|
+
}),
|
|
3975
|
+
...hostHiddenStyles,
|
|
3976
|
+
}),
|
|
3977
|
+
button: {
|
|
3978
|
+
display: 'flex',
|
|
3979
|
+
position: 'relative',
|
|
3980
|
+
justifyContent: 'space-between',
|
|
3981
|
+
width: '100%',
|
|
3982
|
+
textDecoration: 'none',
|
|
3983
|
+
border: 0,
|
|
3984
|
+
outline: 0,
|
|
3985
|
+
gap: '24px',
|
|
3986
|
+
background: 'transparent',
|
|
3987
|
+
cursor: 'pointer',
|
|
3988
|
+
textAlign: 'left',
|
|
3989
|
+
color: primaryColor,
|
|
3990
|
+
...textSmallStyle,
|
|
3991
|
+
fontWeight: fontWeightSemiBold,
|
|
3992
|
+
...buildResponsiveStyles(size, (s) => ({
|
|
3993
|
+
fontSize: s === 'medium' ? fontSizeTextMedium : fontSizeTextSmall,
|
|
3994
|
+
padding: `${compact ? '4px' : s === 'medium' ? '20px' : '15px'} 0`,
|
|
3995
|
+
})),
|
|
3996
|
+
// mergeDeep needed because of hoverMediaQuery in certain modes not wrapping keys and therefore overriding "&::before" key
|
|
3997
|
+
...mergeDeep({
|
|
3998
|
+
'&::before': {
|
|
3999
|
+
content: '""',
|
|
4000
|
+
position: 'absolute',
|
|
4001
|
+
borderRadius: borderRadiusSmall,
|
|
4002
|
+
left: '-4px',
|
|
4003
|
+
right: '-4px',
|
|
4004
|
+
...(compact
|
|
4005
|
+
? {
|
|
4006
|
+
top: '2px',
|
|
4007
|
+
bottom: '2px',
|
|
4008
|
+
}
|
|
4009
|
+
: {
|
|
4010
|
+
top: '6px',
|
|
4011
|
+
bottom: '6px',
|
|
4012
|
+
}),
|
|
4013
|
+
},
|
|
4014
|
+
}, hoverMediaQuery({
|
|
4015
|
+
'&::before': {
|
|
4016
|
+
transition: getTransition('background-color'),
|
|
4017
|
+
},
|
|
4018
|
+
'&:hover::before': {
|
|
4019
|
+
background: hoverColor,
|
|
4020
|
+
},
|
|
4021
|
+
})),
|
|
4022
|
+
'&:focus::before': {
|
|
3967
4023
|
border: `${borderWidthBase} solid ${focusColor}`,
|
|
3968
|
-
},
|
|
4024
|
+
},
|
|
4025
|
+
'&:not(:focus-visible)::before': {
|
|
3969
4026
|
border: 0,
|
|
3970
|
-
}
|
|
4027
|
+
},
|
|
4028
|
+
},
|
|
3971
4029
|
},
|
|
3972
4030
|
heading: {
|
|
3973
4031
|
margin: 0,
|
|
@@ -3984,23 +4042,26 @@ const getComponentCss$Z = (size, compact, open, theme) => {
|
|
|
3984
4042
|
transform: open ? 'rotate3d(0)' : 'rotate3d(0,0,1,90deg)',
|
|
3985
4043
|
transition: getTransition('transform'),
|
|
3986
4044
|
},
|
|
3987
|
-
collapsible:
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
overflow: '
|
|
4045
|
+
collapsible: {
|
|
4046
|
+
color: primaryColor,
|
|
4047
|
+
display: 'grid',
|
|
4048
|
+
...(open
|
|
4049
|
+
? {
|
|
4050
|
+
gridTemplateRows: '1fr',
|
|
4051
|
+
visibility: 'visible',
|
|
4052
|
+
transition: `grid-template-rows ${transitionDuration} ease-out`,
|
|
4053
|
+
paddingBottom: compact ? spacingStaticSmall : '24px',
|
|
4054
|
+
}
|
|
4055
|
+
: {
|
|
4056
|
+
gridTemplateRows: '0fr',
|
|
4057
|
+
visibility: 'hidden',
|
|
4058
|
+
transition: `grid-template-rows ${transitionDuration} ease-out, visibility 0s linear ${transitionDuration}`,
|
|
4059
|
+
}),
|
|
4060
|
+
'& div': {
|
|
4061
|
+
overflow: 'hidden',
|
|
4062
|
+
// Necessary to make focus outlines fully visible
|
|
4063
|
+
padding: '4px',
|
|
4064
|
+
margin: '-4px',
|
|
4004
4065
|
},
|
|
4005
4066
|
},
|
|
4006
4067
|
});
|
|
@@ -4024,24 +4085,47 @@ const topBottomFallback = '56px';
|
|
|
4024
4085
|
const getComponentCss$Y = (isOpen) => {
|
|
4025
4086
|
return getCss({
|
|
4026
4087
|
'@global': {
|
|
4027
|
-
':host': addImportantToEachRule(
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
:
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4088
|
+
':host': addImportantToEachRule({
|
|
4089
|
+
position: 'fixed',
|
|
4090
|
+
bottom: `var(${cssVariableBottom},${topBottomFallback})`,
|
|
4091
|
+
left: gridExtendedOffsetBase,
|
|
4092
|
+
right: gridExtendedOffsetBase,
|
|
4093
|
+
margin: 0,
|
|
4094
|
+
padding: 0,
|
|
4095
|
+
width: 'auto',
|
|
4096
|
+
maxWidth: '100%',
|
|
4097
|
+
zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`,
|
|
4098
|
+
...dropShadowHighStyle,
|
|
4099
|
+
borderRadius: borderRadiusSmall,
|
|
4100
|
+
...(isOpen
|
|
4101
|
+
? {
|
|
4102
|
+
opacity: 1,
|
|
4103
|
+
visibility: 'inherit',
|
|
4104
|
+
transform: 'translate3d(0,0,0)',
|
|
4105
|
+
transition: `opacity ${duration$1} ${easeInQuad$1},transform ${duration$1} ${easeInQuad$1}`,
|
|
4106
|
+
}
|
|
4107
|
+
: {
|
|
4108
|
+
opacity: 0,
|
|
4109
|
+
visibility: 'hidden',
|
|
4110
|
+
transform: `translate3d(0,calc(var(${cssVariableBottom},${topBottomFallback}) + 100%),0)`,
|
|
4111
|
+
'&(.hydrated),&(.ssr)': {
|
|
4112
|
+
transition: `visibility 0s linear ${duration$1},opacity ${duration$1} ${easeOutQuad$1},transform ${duration$1} ${easeOutQuad$1}`,
|
|
4113
|
+
},
|
|
4114
|
+
}),
|
|
4115
|
+
[getMediaQueryMin('s')]: {
|
|
4116
|
+
top: `var(${cssVariableTop},${topBottomFallback})`,
|
|
4117
|
+
bottom: 'auto',
|
|
4118
|
+
left: gridExtendedOffsetS,
|
|
4119
|
+
right: gridExtendedOffsetS,
|
|
4120
|
+
// space before and after "-" is crucial)
|
|
4121
|
+
...(!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop},${topBottomFallback})),0)` }),
|
|
4122
|
+
},
|
|
4123
|
+
[getMediaQueryMin('xxl')]: {
|
|
4042
4124
|
left: gridExtendedOffsetXXL,
|
|
4043
4125
|
right: gridExtendedOffsetXXL,
|
|
4044
|
-
}
|
|
4126
|
+
},
|
|
4127
|
+
...hostHiddenStyles,
|
|
4128
|
+
}),
|
|
4045
4129
|
},
|
|
4046
4130
|
});
|
|
4047
4131
|
};
|
|
@@ -4063,8 +4147,15 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4063
4147
|
const getComponentCss$X = (direction) => {
|
|
4064
4148
|
return getCss({
|
|
4065
4149
|
'@global': {
|
|
4066
|
-
':host':
|
|
4067
|
-
|
|
4150
|
+
':host': {
|
|
4151
|
+
display: 'block',
|
|
4152
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
4153
|
+
},
|
|
4154
|
+
div: {
|
|
4155
|
+
display: 'flex',
|
|
4156
|
+
gap: spacingFluidSmall,
|
|
4157
|
+
...buildResponsiveStyles(direction, getGroupDirectionJssStyles),
|
|
4158
|
+
},
|
|
4068
4159
|
},
|
|
4069
4160
|
});
|
|
4070
4161
|
};
|
|
@@ -4085,75 +4176,134 @@ const getFontSizeText = (size) => {
|
|
|
4085
4176
|
// Needed for slotted anchor and hidden label, which then enlarges the hidden label to equal host size and indents the text to be visually hidden.
|
|
4086
4177
|
const getVisibilityJssStyle = (hideLabel) => {
|
|
4087
4178
|
return hideLabel
|
|
4088
|
-
?
|
|
4179
|
+
? {
|
|
4180
|
+
position: 'absolute',
|
|
4181
|
+
...getInsetJssStyle(),
|
|
4182
|
+
whiteSpace: 'nowrap',
|
|
4183
|
+
textIndent: '-999999px',
|
|
4184
|
+
}
|
|
4185
|
+
: {
|
|
4186
|
+
position: 'relative',
|
|
4187
|
+
...getInsetJssStyle('auto'),
|
|
4188
|
+
whiteSpace: 'inherit',
|
|
4189
|
+
textIndent: 0,
|
|
4190
|
+
zIndex: 1, // fix Firefox bug on :hover (#2583)
|
|
4191
|
+
};
|
|
4089
4192
|
};
|
|
4090
4193
|
const offsetVertical = '-2px';
|
|
4091
4194
|
const offsetHorizontal = '-4px';
|
|
4092
4195
|
const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme) => {
|
|
4093
4196
|
const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
|
|
4094
4197
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4095
|
-
return
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
}))), (!hasSlottedAnchor && {
|
|
4109
|
-
'&:focus::before': {
|
|
4110
|
-
border: `${borderWidthBase} solid ${focusColor}`,
|
|
4198
|
+
return {
|
|
4199
|
+
'@global': {
|
|
4200
|
+
':host': {
|
|
4201
|
+
...addImportantToEachRule({
|
|
4202
|
+
transform: 'translate3d(0,0,0)',
|
|
4203
|
+
outline: 0,
|
|
4204
|
+
...hostHiddenStyles,
|
|
4205
|
+
}),
|
|
4206
|
+
...buildResponsiveStyles(stretch, (responsiveStretch) => ({
|
|
4207
|
+
display: responsiveStretch ? 'block' : 'inline-block',
|
|
4208
|
+
width: responsiveStretch ? '100%' : 'auto',
|
|
4209
|
+
...(!responsiveStretch && { verticalAlign: 'top' }),
|
|
4210
|
+
})),
|
|
4111
4211
|
},
|
|
4112
|
-
|
|
4113
|
-
|
|
4212
|
+
},
|
|
4213
|
+
root: {
|
|
4214
|
+
display: 'flex',
|
|
4215
|
+
gap: spacingStaticXSmall,
|
|
4216
|
+
width: '100%',
|
|
4217
|
+
margin: 0,
|
|
4218
|
+
padding: 0,
|
|
4219
|
+
color: isDisabledOrLoading ? disabledColor : primaryColor,
|
|
4220
|
+
outline: 0,
|
|
4221
|
+
...textSmallStyle,
|
|
4222
|
+
...mergeDeep(buildResponsiveStyles(stretch, (stretchValue) => ({
|
|
4223
|
+
justifyContent: stretchValue ? 'space-between' : 'flex-start',
|
|
4224
|
+
alignItems: stretchValue ? 'center' : 'flex-start',
|
|
4225
|
+
})), buildResponsiveStyles(size, (sizeValue) => ({
|
|
4226
|
+
fontSize: getFontSizeText(sizeValue),
|
|
4227
|
+
}))),
|
|
4228
|
+
'&::before': {
|
|
4229
|
+
content: '""',
|
|
4230
|
+
position: 'absolute',
|
|
4231
|
+
top: offsetVertical,
|
|
4232
|
+
bottom: offsetVertical,
|
|
4233
|
+
...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
|
|
4234
|
+
right: hideLabelValue ? offsetVertical : offsetHorizontal,
|
|
4235
|
+
left: hideLabelValue ? offsetVertical : offsetHorizontal,
|
|
4236
|
+
})),
|
|
4237
|
+
borderRadius: borderRadiusSmall,
|
|
4238
|
+
transition: getTransition('background-color'),
|
|
4239
|
+
...(active && {
|
|
4240
|
+
...frostedGlassStyle,
|
|
4241
|
+
backgroundColor: hoverColor,
|
|
4242
|
+
}),
|
|
4114
4243
|
},
|
|
4115
|
-
|
|
4244
|
+
...(!isDisabledOrLoading &&
|
|
4245
|
+
hoverMediaQuery({
|
|
4246
|
+
'&:hover::before': {
|
|
4247
|
+
...frostedGlassStyle,
|
|
4248
|
+
backgroundColor: hoverColor,
|
|
4249
|
+
},
|
|
4250
|
+
})),
|
|
4251
|
+
...(!hasSlottedAnchor && {
|
|
4252
|
+
'&:focus::before': {
|
|
4253
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
4254
|
+
},
|
|
4255
|
+
'&:not(:focus-visible)::before': {
|
|
4256
|
+
border: 0,
|
|
4257
|
+
},
|
|
4258
|
+
}),
|
|
4259
|
+
},
|
|
4260
|
+
label: {
|
|
4116
4261
|
position: 'relative', // needed for hover state when icon="none" is set
|
|
4117
|
-
} }, (hasIcon && {
|
|
4118
|
-
icon: {
|
|
4119
|
-
position: 'relative',
|
|
4120
|
-
flexShrink: '0',
|
|
4121
|
-
width: fontLineHeight,
|
|
4122
|
-
height: fontLineHeight,
|
|
4123
|
-
// workaround for Safari to optimize vertical alignment of icons
|
|
4124
|
-
// TODO: check if this is still needed after optimized icons are included
|
|
4125
|
-
'@supports (width: round(down, 1px, 1px))': {
|
|
4126
|
-
width: `round(down, ${fontLineHeight}, 1px)`,
|
|
4127
|
-
height: `round(down, ${fontLineHeight}, 1px)`,
|
|
4128
|
-
},
|
|
4129
4262
|
},
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4263
|
+
...(hasIcon && {
|
|
4264
|
+
icon: {
|
|
4265
|
+
position: 'relative',
|
|
4266
|
+
flexShrink: '0',
|
|
4267
|
+
width: fontLineHeight,
|
|
4268
|
+
height: fontLineHeight,
|
|
4269
|
+
// workaround for Safari to optimize vertical alignment of icons
|
|
4270
|
+
// TODO: check if this is still needed after optimized icons are included
|
|
4271
|
+
'@supports (width: round(down, 1px, 1px))': {
|
|
4272
|
+
width: `round(down, ${fontLineHeight}, 1px)`,
|
|
4273
|
+
height: `round(down, ${fontLineHeight}, 1px)`,
|
|
4274
|
+
},
|
|
4275
|
+
},
|
|
4276
|
+
label: mergeDeep(buildResponsiveStyles(hideLabel, getVisibilityJssStyle), buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
|
|
4277
|
+
order: alignLabelValue === 'left' ? -1 : 0,
|
|
4278
|
+
}))),
|
|
4279
|
+
}),
|
|
4280
|
+
};
|
|
4134
4281
|
};
|
|
4135
4282
|
|
|
4136
4283
|
const getComponentCss$W = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
|
|
4137
4284
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4138
|
-
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme),
|
|
4285
|
+
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), {
|
|
4286
|
+
root: {
|
|
4139
4287
|
appearance: 'none',
|
|
4140
4288
|
background: 'transparent',
|
|
4141
4289
|
textAlign: 'left',
|
|
4142
4290
|
border: 0,
|
|
4143
4291
|
cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
|
|
4144
|
-
} }, (!hasIcon &&
|
|
4145
|
-
isLoading && {
|
|
4146
|
-
label: {
|
|
4147
|
-
visibility: 'hidden',
|
|
4148
|
-
},
|
|
4149
|
-
icon: {
|
|
4150
|
-
position: 'absolute',
|
|
4151
|
-
top: 0,
|
|
4152
|
-
left: `calc(50% - ${fontLineHeight} / 2)`,
|
|
4153
|
-
width: fontLineHeight,
|
|
4154
|
-
height: fontLineHeight,
|
|
4155
4292
|
},
|
|
4156
|
-
|
|
4293
|
+
...(!hasIcon &&
|
|
4294
|
+
isLoading && {
|
|
4295
|
+
label: {
|
|
4296
|
+
visibility: 'hidden',
|
|
4297
|
+
},
|
|
4298
|
+
icon: {
|
|
4299
|
+
position: 'absolute',
|
|
4300
|
+
top: 0,
|
|
4301
|
+
left: `calc(50% - ${fontLineHeight} / 2)`,
|
|
4302
|
+
width: fontLineHeight,
|
|
4303
|
+
height: fontLineHeight,
|
|
4304
|
+
},
|
|
4305
|
+
}),
|
|
4306
|
+
}));
|
|
4157
4307
|
};
|
|
4158
4308
|
|
|
4159
4309
|
const fontWeightMap = {
|
|
@@ -4192,25 +4342,46 @@ const aspectRatioPaddingMap = {
|
|
|
4192
4342
|
};
|
|
4193
4343
|
const getTileBaseStyles = (aspectRatio, isDisabled) => {
|
|
4194
4344
|
return {
|
|
4195
|
-
'@global':
|
|
4196
|
-
'
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
height: '100%',
|
|
4200
|
-
width: '100%',
|
|
4201
|
-
objectFit: 'cover',
|
|
4202
|
-
},
|
|
4345
|
+
'@global': {
|
|
4346
|
+
':host': {
|
|
4347
|
+
display: 'block',
|
|
4348
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
4203
4349
|
},
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4350
|
+
...addImportantToEachRule({
|
|
4351
|
+
'::slotted': {
|
|
4352
|
+
'&(picture)': {
|
|
4353
|
+
position: 'absolute',
|
|
4354
|
+
...getInsetJssStyle(),
|
|
4355
|
+
},
|
|
4356
|
+
'&(img)': {
|
|
4357
|
+
height: '100%',
|
|
4358
|
+
width: '100%',
|
|
4359
|
+
objectFit: 'cover',
|
|
4360
|
+
},
|
|
4211
4361
|
},
|
|
4212
|
-
})
|
|
4213
|
-
|
|
4362
|
+
}),
|
|
4363
|
+
},
|
|
4364
|
+
root: {
|
|
4365
|
+
position: 'relative',
|
|
4366
|
+
overflow: 'hidden',
|
|
4367
|
+
transform: 'translate3d(0,0,0)',
|
|
4368
|
+
borderRadius: borderRadiusLarge,
|
|
4369
|
+
color: getThemedTypographyColor('dark', 'primary'),
|
|
4370
|
+
...buildResponsiveStyles(aspectRatio, (ratio) => ({
|
|
4371
|
+
paddingTop: aspectRatioPaddingMap[ratio],
|
|
4372
|
+
})),
|
|
4373
|
+
...(!isDisabled &&
|
|
4374
|
+
hoverMediaQuery({
|
|
4375
|
+
'&:hover .image-container': {
|
|
4376
|
+
transform: 'scale3d(1.05,1.05,1.05)',
|
|
4377
|
+
},
|
|
4378
|
+
})),
|
|
4379
|
+
},
|
|
4380
|
+
'image-container': {
|
|
4381
|
+
position: 'absolute',
|
|
4382
|
+
transition: getTransition('transform'),
|
|
4383
|
+
...getInsetJssStyle(),
|
|
4384
|
+
},
|
|
4214
4385
|
content: {
|
|
4215
4386
|
position: 'absolute',
|
|
4216
4387
|
left: 0,
|
|
@@ -4233,32 +4404,59 @@ const sizeMap$5 = {
|
|
|
4233
4404
|
const getButtonLinkTileStyles = (aspectRatio, size, weight, // to get deprecated semibold typed
|
|
4234
4405
|
align, compact, hasGradient, isDisabled) => {
|
|
4235
4406
|
const isTopAligned = align === 'top';
|
|
4236
|
-
return
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4407
|
+
return {
|
|
4408
|
+
...mergeDeep(getTileBaseStyles(aspectRatio, isDisabled), {
|
|
4409
|
+
'@global': {
|
|
4410
|
+
p: {
|
|
4411
|
+
maxWidth: pxToRemWithUnit(550),
|
|
4412
|
+
margin: 0,
|
|
4413
|
+
...textLargeStyle,
|
|
4414
|
+
...mergeDeep(buildResponsiveStyles(size, (s) => sizeMap$5[s]), buildResponsiveStyles(weight, (w) => ({
|
|
4415
|
+
fontWeight: getFontWeight(w === 'semibold' ? 'semi-bold' : w), // mapping of the deprecated weight semibold
|
|
4416
|
+
}))),
|
|
4417
|
+
},
|
|
4418
|
+
},
|
|
4419
|
+
content: {
|
|
4420
|
+
display: 'grid',
|
|
4421
|
+
...(isTopAligned ? { top: 0 } : { bottom: 0 }),
|
|
4422
|
+
padding: isTopAligned
|
|
4423
|
+
? `${spacingFluidMedium} ${spacingFluidMedium} ${spacingFluidLarge}`
|
|
4424
|
+
: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}`,
|
|
4425
|
+
...mergeDeep(hasGradient &&
|
|
4426
|
+
buildResponsiveStyles(compact, (isCompact) => isCompact && isTopAligned ? gradientToBottomStyle : gradientToTopStyle), buildResponsiveStyles(compact, (isCompact) => isCompact // TODO: use flex
|
|
4427
|
+
? {
|
|
4428
|
+
alignItems: 'center',
|
|
4429
|
+
gridTemplateColumns: 'auto 24px',
|
|
4430
|
+
gridTemplateRows: 'auto',
|
|
4431
|
+
...(isTopAligned ? { top: 0 } : { bottom: 0 }),
|
|
4432
|
+
}
|
|
4433
|
+
: {
|
|
4434
|
+
gridTemplateRows: 'auto auto',
|
|
4435
|
+
gridTemplateColumns: 'auto',
|
|
4436
|
+
})),
|
|
4437
|
+
},
|
|
4438
|
+
'link-or-button-pure': buildResponsiveStyles(compact, (isCompact) => ({
|
|
4439
|
+
display: isCompact ? 'inline-block' : 'none',
|
|
4440
|
+
})),
|
|
4441
|
+
'link-or-button': {
|
|
4442
|
+
minHeight: '54px',
|
|
4443
|
+
...buildResponsiveStyles(compact, (isCompact) => ({
|
|
4444
|
+
display: isCompact ? 'none' : 'inline-block',
|
|
4445
|
+
})),
|
|
4446
|
+
},
|
|
4447
|
+
}),
|
|
4448
|
+
};
|
|
4257
4449
|
};
|
|
4258
4450
|
|
|
4259
4451
|
const getComponentCss$V = (isDisabledOrLoading, ...args) => {
|
|
4260
4452
|
const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
|
|
4261
|
-
return getCss(
|
|
4453
|
+
return getCss({
|
|
4454
|
+
...buttonLinkTileStyles,
|
|
4455
|
+
root: {
|
|
4456
|
+
...buttonLinkTileStyles.root,
|
|
4457
|
+
cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
|
|
4458
|
+
},
|
|
4459
|
+
});
|
|
4262
4460
|
};
|
|
4263
4461
|
|
|
4264
4462
|
const { primaryColor: darkThemePrimaryColor$1 } = getThemedColors('dark');
|
|
@@ -4289,26 +4487,69 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4289
4487
|
const { textColor, borderColor, borderColorHover, backgroundColor, backgroundColorHover } = getVariantColors(variant, theme);
|
|
4290
4488
|
const { focusColor } = getThemedColors(theme);
|
|
4291
4489
|
const hasIcon = hasVisibleIcon(icon, iconSource) || hideLabel;
|
|
4292
|
-
return
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
border: 0,
|
|
4490
|
+
return {
|
|
4491
|
+
'@global': {
|
|
4492
|
+
':host': {
|
|
4493
|
+
display: 'inline-block',
|
|
4494
|
+
...addImportantToEachRule({
|
|
4495
|
+
verticalAlign: 'top',
|
|
4496
|
+
outline: 0,
|
|
4497
|
+
...hostHiddenStyles,
|
|
4498
|
+
}),
|
|
4302
4499
|
},
|
|
4303
|
-
})), (!isDisabledOrLoading &&
|
|
4304
|
-
hoverMediaQuery({
|
|
4305
|
-
'&:hover': Object.assign({ backgroundColor: backgroundColorHover, borderColor: isHighContrastMode ? focusColor : borderColorHover }, (!isPrimary && frostedGlassStyle)),
|
|
4306
|
-
}))), label: buildResponsiveStyles(hideLabel, getHiddenTextJssStyle) }, (hasIcon && {
|
|
4307
|
-
icon: {
|
|
4308
|
-
width: fontLineHeight,
|
|
4309
|
-
height: fontLineHeight,
|
|
4310
4500
|
},
|
|
4311
|
-
|
|
4501
|
+
root: {
|
|
4502
|
+
display: 'flex',
|
|
4503
|
+
alignItems: 'flex-start',
|
|
4504
|
+
justifyContent: 'center',
|
|
4505
|
+
width: '100%',
|
|
4506
|
+
minWidth: '54px',
|
|
4507
|
+
minHeight: '54px',
|
|
4508
|
+
boxSizing: 'border-box',
|
|
4509
|
+
outline: 0,
|
|
4510
|
+
textAlign: 'left',
|
|
4511
|
+
appearance: 'none',
|
|
4512
|
+
textDecoration: 'none',
|
|
4513
|
+
border: `2px solid ${borderColor}`,
|
|
4514
|
+
borderRadius: borderRadiusSmall,
|
|
4515
|
+
transform: 'translate3d(0,0,0)',
|
|
4516
|
+
backgroundColor,
|
|
4517
|
+
color: textColor,
|
|
4518
|
+
...textSmallStyle,
|
|
4519
|
+
transition: ['background-color', 'border-color', 'color'].map(getTransition).join(),
|
|
4520
|
+
...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
|
|
4521
|
+
padding: hideLabelValue ? '13px' : hasIcon ? '13px 26px 13px 18px' : '13px 26px',
|
|
4522
|
+
gap: hideLabelValue ? 0 : spacingStaticSmall,
|
|
4523
|
+
})),
|
|
4524
|
+
...(!hasSlottedAnchor && {
|
|
4525
|
+
'&:focus::before': {
|
|
4526
|
+
content: '""',
|
|
4527
|
+
position: 'fixed',
|
|
4528
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
4529
|
+
borderRadius: borderRadiusMedium,
|
|
4530
|
+
...getInsetJssStyle(-6),
|
|
4531
|
+
},
|
|
4532
|
+
'&:not(:focus-visible)::before': {
|
|
4533
|
+
border: 0,
|
|
4534
|
+
},
|
|
4535
|
+
}),
|
|
4536
|
+
...(!isDisabledOrLoading &&
|
|
4537
|
+
hoverMediaQuery({
|
|
4538
|
+
'&:hover': {
|
|
4539
|
+
backgroundColor: backgroundColorHover,
|
|
4540
|
+
borderColor: isHighContrastMode ? focusColor : borderColorHover,
|
|
4541
|
+
...(!isPrimary && frostedGlassStyle),
|
|
4542
|
+
},
|
|
4543
|
+
})),
|
|
4544
|
+
},
|
|
4545
|
+
label: buildResponsiveStyles(hideLabel, getHiddenTextJssStyle),
|
|
4546
|
+
...(hasIcon && {
|
|
4547
|
+
icon: {
|
|
4548
|
+
width: fontLineHeight,
|
|
4549
|
+
height: fontLineHeight,
|
|
4550
|
+
},
|
|
4551
|
+
}),
|
|
4552
|
+
};
|
|
4312
4553
|
};
|
|
4313
4554
|
|
|
4314
4555
|
const getDisabledColors = (variant, loading, theme) => {
|
|
@@ -4332,25 +4573,40 @@ const getComponentCss$U = (icon, iconSource, variant, hideLabel, disabled, loadi
|
|
|
4332
4573
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4333
4574
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4334
4575
|
const isPrimary = variant === 'primary';
|
|
4335
|
-
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, theme),
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4576
|
+
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, theme), {
|
|
4577
|
+
root: {
|
|
4578
|
+
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
4579
|
+
...(disabledOrLoading && {
|
|
4580
|
+
backgroundColor,
|
|
4581
|
+
borderColor,
|
|
4582
|
+
color: textColor,
|
|
4583
|
+
}),
|
|
4584
|
+
...(loading && !isPrimary && frostedGlassStyle),
|
|
4585
|
+
},
|
|
4586
|
+
...(loading && {
|
|
4587
|
+
spinner: {
|
|
4588
|
+
width: fontLineHeight,
|
|
4589
|
+
height: fontLineHeight,
|
|
4590
|
+
pointerEvents: 'none',
|
|
4591
|
+
position: 'absolute',
|
|
4592
|
+
top: '50%',
|
|
4593
|
+
left: '50%',
|
|
4594
|
+
transform: 'translate(-50%, -50%)',
|
|
4595
|
+
},
|
|
4596
|
+
}),
|
|
4597
|
+
label: {
|
|
4598
|
+
transition: getTransition('opacity'),
|
|
4599
|
+
...(loading && {
|
|
4600
|
+
opacity: 0, // use opacity for smooth transition between states
|
|
4601
|
+
}),
|
|
4602
|
+
},
|
|
4603
|
+
icon: {
|
|
4604
|
+
transition: getTransition('opacity'),
|
|
4605
|
+
...(loading && {
|
|
4606
|
+
opacity: 0, // use opacity for smooth transition between states
|
|
4607
|
+
}),
|
|
4348
4608
|
},
|
|
4349
|
-
}))
|
|
4350
|
-
opacity: 0, // use opacity for smooth transition between states
|
|
4351
|
-
})), icon: Object.assign({ transition: getTransition('opacity') }, (loading && {
|
|
4352
|
-
opacity: 0, // use opacity for smooth transition between states
|
|
4353
|
-
})) })));
|
|
4609
|
+
}));
|
|
4354
4610
|
};
|
|
4355
4611
|
|
|
4356
4612
|
const carouselTransitionDuration = 400;
|
|
@@ -4376,10 +4632,32 @@ const getComponentCss$T = (width, hasPagination, isInfinitePagination, alignHead
|
|
|
4376
4632
|
const { primaryColor, contrastMediumColor, focusColor } = getThemedColors(theme);
|
|
4377
4633
|
const { canvasTextColor } = getHighContrastColors();
|
|
4378
4634
|
const isHeaderAlignCenter = alignHeader === 'center';
|
|
4379
|
-
return getCss(
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4635
|
+
return getCss({
|
|
4636
|
+
'@global': {
|
|
4637
|
+
':host': addImportantToEachRule({
|
|
4638
|
+
display: 'flex',
|
|
4639
|
+
gap: spacingFluidMedium,
|
|
4640
|
+
flexDirection: 'column',
|
|
4641
|
+
boxSizing: 'content-box',
|
|
4642
|
+
...hostHiddenStyles,
|
|
4643
|
+
}),
|
|
4644
|
+
'::slotted(*)': {
|
|
4645
|
+
borderRadius: addImportantToRule(`var(--p-carousel-border-radius, ${borderRadiusLarge})`),
|
|
4646
|
+
},
|
|
4647
|
+
'::slotted(*:focus-visible)': addImportantToEachRule({
|
|
4648
|
+
outline: `${borderWidthBase} solid ${focusColor}`,
|
|
4649
|
+
outlineOffset: '2px',
|
|
4650
|
+
}),
|
|
4651
|
+
[selectorHeading]: addImportantToEachRule({
|
|
4652
|
+
...headingXLargeStyle,
|
|
4653
|
+
maxWidth: '56.25rem',
|
|
4654
|
+
margin: 0,
|
|
4655
|
+
}),
|
|
4656
|
+
[selectorDescription]: addImportantToEachRule({
|
|
4657
|
+
...textSmallStyle,
|
|
4658
|
+
maxWidth: '34.375rem',
|
|
4659
|
+
margin: `${spacingFluidXSmall} 0 0`,
|
|
4660
|
+
}),
|
|
4383
4661
|
[`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
|
|
4384
4662
|
color: primaryColor,
|
|
4385
4663
|
[mediaQueryS]: isHeaderAlignCenter
|
|
@@ -4390,13 +4668,28 @@ const getComponentCss$T = (width, hasPagination, isInfinitePagination, alignHead
|
|
|
4390
4668
|
gridColumn: '1 / 3',
|
|
4391
4669
|
},
|
|
4392
4670
|
}),
|
|
4393
|
-
},
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4671
|
+
},
|
|
4672
|
+
header: {
|
|
4673
|
+
display: 'grid',
|
|
4674
|
+
padding: `0 ${spacingMap[width].base}`,
|
|
4675
|
+
...(isHeaderAlignCenter && {
|
|
4676
|
+
textAlign: 'center',
|
|
4677
|
+
}),
|
|
4678
|
+
[mediaQueryS]: {
|
|
4679
|
+
fontFamily,
|
|
4680
|
+
fontSize: fontSizeTextSmall,
|
|
4681
|
+
columnGap: spacingStaticMedium,
|
|
4682
|
+
gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}`,
|
|
4683
|
+
...(isHeaderAlignCenter && {
|
|
4684
|
+
justifyItems: 'center', // relevant when max-width of heading or description is reached
|
|
4685
|
+
}),
|
|
4686
|
+
padding: `0 ${spacingMap[width].s}`,
|
|
4687
|
+
},
|
|
4688
|
+
[mediaQueryXXL]: {
|
|
4398
4689
|
padding: `0 ${spacingMap[width].xxl}`,
|
|
4399
|
-
}
|
|
4690
|
+
},
|
|
4691
|
+
},
|
|
4692
|
+
nav: {
|
|
4400
4693
|
display: 'none',
|
|
4401
4694
|
[mediaQueryS]: {
|
|
4402
4695
|
display: 'flex',
|
|
@@ -4406,88 +4699,128 @@ const getComponentCss$T = (width, hasPagination, isInfinitePagination, alignHead
|
|
|
4406
4699
|
justifyContent: 'end',
|
|
4407
4700
|
justifySelf: 'end',
|
|
4408
4701
|
},
|
|
4409
|
-
},
|
|
4702
|
+
},
|
|
4703
|
+
btn: {
|
|
4410
4704
|
padding: spacingStaticSmall,
|
|
4411
|
-
},
|
|
4705
|
+
},
|
|
4706
|
+
'skip-link': {
|
|
4412
4707
|
opacity: 0,
|
|
4413
4708
|
pointerEvents: 'none',
|
|
4414
4709
|
'&:focus': {
|
|
4415
4710
|
opacity: 1,
|
|
4416
4711
|
pointerEvents: 'all',
|
|
4417
4712
|
},
|
|
4418
|
-
},
|
|
4713
|
+
},
|
|
4714
|
+
splide: {
|
|
4419
4715
|
overflow: 'hidden',
|
|
4420
|
-
// visibility: 'hidden',
|
|
4421
4716
|
padding: '4px 0',
|
|
4422
4717
|
margin: '-4px 0',
|
|
4423
|
-
'&__track':
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4718
|
+
'&__track': {
|
|
4719
|
+
cursor: 'grab',
|
|
4720
|
+
// !important is necessary to override inline styles set by splide library
|
|
4721
|
+
...addImportantToEachRule({
|
|
4722
|
+
padding: `0 ${spacingMap[width].base}`,
|
|
4723
|
+
[getMediaQueryMax('xs')]: {
|
|
4724
|
+
paddingRight: `calc(${gridBasicOffsetBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
|
|
4725
|
+
},
|
|
4726
|
+
[mediaQueryS]: {
|
|
4727
|
+
padding: `0 ${spacingMap[width].s}`,
|
|
4728
|
+
},
|
|
4729
|
+
[mediaQueryXXL]: {
|
|
4730
|
+
padding: `0 ${spacingMap[width].xxl}`,
|
|
4731
|
+
},
|
|
4732
|
+
}),
|
|
4733
|
+
'&--draggable': {
|
|
4435
4734
|
userSelect: 'none',
|
|
4436
4735
|
WebkitUserSelect: 'none',
|
|
4437
4736
|
WebkitTouchCallout: 'none',
|
|
4438
|
-
}
|
|
4439
|
-
|
|
4440
|
-
'&
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
} }),
|
|
4444
|
-
'&__sr': getHiddenTextJssStyle(), // appears in the DOM when sliding
|
|
4445
|
-
} }, (hasPagination && Object.assign(Object.assign({ ['pagination-container']: Object.assign(Object.assign({}, buildResponsiveStyles(hasPagination, (hasPaginationValue) => ({
|
|
4446
|
-
display: hasPaginationValue ? 'flex' : 'none',
|
|
4447
|
-
}))), { position: 'relative', justifyContent: isInfinitePagination ? 'flex-start' : 'center', width: `calc(${paginationActiveBulletSize} + ${paginationBulletSize} * 4 + ${spacingStaticSmall} * 4)`, left: 'calc(50% - 42px)', overflowX: 'hidden' }), pagination: {
|
|
4448
|
-
display: 'flex',
|
|
4449
|
-
alignItems: 'center',
|
|
4450
|
-
width: 'fit-content',
|
|
4451
|
-
height: paginationBulletSize,
|
|
4452
|
-
gap: spacingStaticSmall,
|
|
4453
|
-
transition: `transform ${carouselTransitionDuration}ms`,
|
|
4454
|
-
}, bullet: Object.assign({ borderRadius: borderRadiusSmall, background: isHighContrastMode ? canvasTextColor : contrastMediumColor }, (isInfinitePagination
|
|
4455
|
-
? {
|
|
4456
|
-
width: '0px',
|
|
4457
|
-
height: '0px',
|
|
4458
|
-
transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms, height ${carouselTransitionDuration}ms`,
|
|
4459
|
-
}
|
|
4460
|
-
: {
|
|
4461
|
-
width: paginationBulletSize,
|
|
4462
|
-
height: paginationBulletSize,
|
|
4463
|
-
transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
|
|
4464
|
-
})) }, (isInfinitePagination && {
|
|
4465
|
-
[`${paginationInfiniteStartCaseClass}`]: {
|
|
4466
|
-
['& > .bullet:nth-child(-n+4)']: {
|
|
4467
|
-
width: paginationBulletSize,
|
|
4468
|
-
height: paginationBulletSize,
|
|
4737
|
+
},
|
|
4738
|
+
},
|
|
4739
|
+
'&__list': {
|
|
4740
|
+
display: 'flex',
|
|
4741
|
+
...getBackfaceVisibilityJssStyle(),
|
|
4469
4742
|
},
|
|
4743
|
+
'&__slide': {
|
|
4744
|
+
flexShrink: 0,
|
|
4745
|
+
...getBackfaceVisibilityJssStyle(),
|
|
4746
|
+
transform: 'translateZ(0)', // fixes mobile safari flickering, https://github.com/nolimits4web/swiper/issues/3527#issuecomment-609088939
|
|
4747
|
+
},
|
|
4748
|
+
'&__sr': getHiddenTextJssStyle(), // appears in the DOM when sliding
|
|
4470
4749
|
},
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
width:
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4750
|
+
...(hasPagination && {
|
|
4751
|
+
['pagination-container']: {
|
|
4752
|
+
...buildResponsiveStyles(hasPagination, (hasPaginationValue) => ({
|
|
4753
|
+
display: hasPaginationValue ? 'flex' : 'none',
|
|
4754
|
+
})),
|
|
4755
|
+
position: 'relative',
|
|
4756
|
+
justifyContent: isInfinitePagination ? 'flex-start' : 'center',
|
|
4757
|
+
width: `calc(${paginationActiveBulletSize} + ${paginationBulletSize} * 4 + ${spacingStaticSmall} * 4)`,
|
|
4758
|
+
left: 'calc(50% - 42px)',
|
|
4759
|
+
overflowX: 'hidden',
|
|
4760
|
+
},
|
|
4761
|
+
pagination: {
|
|
4762
|
+
display: 'flex',
|
|
4763
|
+
alignItems: 'center',
|
|
4764
|
+
width: 'fit-content',
|
|
4484
4765
|
height: paginationBulletSize,
|
|
4766
|
+
gap: spacingStaticSmall,
|
|
4767
|
+
transition: `transform ${carouselTransitionDuration}ms`,
|
|
4768
|
+
},
|
|
4769
|
+
bullet: {
|
|
4770
|
+
borderRadius: borderRadiusSmall,
|
|
4771
|
+
background: isHighContrastMode ? canvasTextColor : contrastMediumColor,
|
|
4772
|
+
...(isInfinitePagination
|
|
4773
|
+
? {
|
|
4774
|
+
width: '0px',
|
|
4775
|
+
height: '0px',
|
|
4776
|
+
transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms, height ${carouselTransitionDuration}ms`,
|
|
4777
|
+
}
|
|
4778
|
+
: {
|
|
4779
|
+
width: paginationBulletSize,
|
|
4780
|
+
height: paginationBulletSize,
|
|
4781
|
+
transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
|
|
4782
|
+
}),
|
|
4485
4783
|
},
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4784
|
+
...(isInfinitePagination && {
|
|
4785
|
+
[`${paginationInfiniteStartCaseClass}`]: {
|
|
4786
|
+
['& > .bullet:nth-child(-n+4)']: {
|
|
4787
|
+
width: paginationBulletSize,
|
|
4788
|
+
height: paginationBulletSize,
|
|
4789
|
+
},
|
|
4790
|
+
},
|
|
4791
|
+
[`${bulletInfiniteClass}`]: {
|
|
4792
|
+
// Necessary to override the bulletActiveClass sibling selector
|
|
4793
|
+
...addImportantToEachRule({
|
|
4794
|
+
width: paginationInfiniteBulletSize,
|
|
4795
|
+
height: paginationInfiniteBulletSize,
|
|
4796
|
+
}),
|
|
4797
|
+
'& ~ span': {
|
|
4798
|
+
width: paginationBulletSize,
|
|
4799
|
+
height: paginationBulletSize,
|
|
4800
|
+
},
|
|
4801
|
+
[`& ~ .${bulletInfiniteClass} ~ span`]: {
|
|
4802
|
+
width: '0px',
|
|
4803
|
+
height: '0px',
|
|
4804
|
+
},
|
|
4805
|
+
},
|
|
4806
|
+
}),
|
|
4807
|
+
[`${bulletActiveClass}`]: {
|
|
4808
|
+
background: isHighContrastMode ? canvasTextColor : primaryColor,
|
|
4809
|
+
height: paginationBulletSize,
|
|
4810
|
+
width: addImportantToRule(paginationActiveBulletSize),
|
|
4811
|
+
...(isInfinitePagination && {
|
|
4812
|
+
'& ~ span': {
|
|
4813
|
+
width: paginationBulletSize,
|
|
4814
|
+
height: paginationBulletSize,
|
|
4815
|
+
},
|
|
4816
|
+
[`& ~ .${bulletInfiniteClass} ~ span`]: {
|
|
4817
|
+
width: '0px',
|
|
4818
|
+
height: '0px',
|
|
4819
|
+
},
|
|
4820
|
+
}),
|
|
4489
4821
|
},
|
|
4490
|
-
})
|
|
4822
|
+
}),
|
|
4823
|
+
});
|
|
4491
4824
|
};
|
|
4492
4825
|
|
|
4493
4826
|
const getThemedFormStateColors = (theme, state) => {
|
|
@@ -4508,7 +4841,14 @@ const getFunctionalComponentRequiredStyles = () => {
|
|
|
4508
4841
|
|
|
4509
4842
|
const getFunctionalComponentStateMessageStyles = (theme, state) => {
|
|
4510
4843
|
return {
|
|
4511
|
-
message:
|
|
4844
|
+
message: {
|
|
4845
|
+
display: 'flex',
|
|
4846
|
+
gap: spacingStaticXSmall,
|
|
4847
|
+
marginTop: spacingStaticXSmall,
|
|
4848
|
+
...textSmallStyle,
|
|
4849
|
+
color: getThemedFormStateColors(theme, state).formStateColor,
|
|
4850
|
+
transition: getTransition('color'),
|
|
4851
|
+
},
|
|
4512
4852
|
};
|
|
4513
4853
|
};
|
|
4514
4854
|
|
|
@@ -4525,9 +4865,14 @@ const getCheckboxRadioJssStyle = (hideLabel, state, isDisabled, isLoading, theme
|
|
|
4525
4865
|
? disabledColor
|
|
4526
4866
|
: formStateColor || primaryColor;
|
|
4527
4867
|
const checkedHoverColor = formStateHoverColor || contrastHighColor;
|
|
4528
|
-
return
|
|
4529
|
-
|
|
4530
|
-
'
|
|
4868
|
+
return {
|
|
4869
|
+
'@global': {
|
|
4870
|
+
':host': addImportantToEachRule({
|
|
4871
|
+
...hostHiddenStyles,
|
|
4872
|
+
display: 'block',
|
|
4873
|
+
}),
|
|
4874
|
+
'::slotted': addImportantToEachRule({
|
|
4875
|
+
'&(input)': {
|
|
4531
4876
|
position: 'relative',
|
|
4532
4877
|
width: fontLineHeight,
|
|
4533
4878
|
height: fontLineHeight,
|
|
@@ -4545,31 +4890,53 @@ const getCheckboxRadioJssStyle = (hideLabel, state, isDisabled, isLoading, theme
|
|
|
4545
4890
|
border: `2px solid ${uncheckedColor}`,
|
|
4546
4891
|
outline: 0,
|
|
4547
4892
|
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
4548
|
-
},
|
|
4893
|
+
},
|
|
4894
|
+
'&(input:checked)': {
|
|
4549
4895
|
// background-image is merged in later
|
|
4550
4896
|
borderColor: checkedColor,
|
|
4551
4897
|
backgroundColor: checkedColor,
|
|
4552
|
-
} }, (!disabledOrLoading && Object.assign(Object.assign({}, (!isHighContrastMode &&
|
|
4553
|
-
hoverMediaQuery({
|
|
4554
|
-
'&(input:hover), .text:hover ~ &(input)': {
|
|
4555
|
-
borderColor: uncheckedHoverColor,
|
|
4556
|
-
},
|
|
4557
|
-
'&(input:checked:hover), .text:hover ~ &(input:checked)': {
|
|
4558
|
-
borderColor: checkedHoverColor,
|
|
4559
|
-
backgroundColor: checkedHoverColor,
|
|
4560
|
-
},
|
|
4561
|
-
}))), (!isDisabled && {
|
|
4562
|
-
'&(input:focus)::before': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(-6)), { border: `${borderWidthBase} solid ${focusColor}` }),
|
|
4563
|
-
'&(input:focus:not(:focus-visible))::before': {
|
|
4564
|
-
borderColor: 'transparent',
|
|
4565
4898
|
},
|
|
4566
|
-
|
|
4899
|
+
...(!disabledOrLoading && {
|
|
4900
|
+
...(!isHighContrastMode &&
|
|
4901
|
+
hoverMediaQuery({
|
|
4902
|
+
'&(input:hover), .text:hover ~ &(input)': {
|
|
4903
|
+
borderColor: uncheckedHoverColor,
|
|
4904
|
+
},
|
|
4905
|
+
'&(input:checked:hover), .text:hover ~ &(input:checked)': {
|
|
4906
|
+
borderColor: checkedHoverColor,
|
|
4907
|
+
backgroundColor: checkedHoverColor,
|
|
4908
|
+
},
|
|
4909
|
+
})),
|
|
4910
|
+
...(!isDisabled && {
|
|
4911
|
+
'&(input:focus)::before': {
|
|
4912
|
+
content: '""',
|
|
4913
|
+
position: 'absolute',
|
|
4914
|
+
...getInsetJssStyle(-6),
|
|
4915
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
4916
|
+
},
|
|
4917
|
+
'&(input:focus:not(:focus-visible))::before': {
|
|
4918
|
+
borderColor: 'transparent',
|
|
4919
|
+
},
|
|
4920
|
+
}),
|
|
4921
|
+
}),
|
|
4922
|
+
}),
|
|
4567
4923
|
label: {
|
|
4568
4924
|
position: 'relative',
|
|
4569
4925
|
display: 'flex',
|
|
4570
4926
|
alignItems: 'flex-start',
|
|
4571
4927
|
},
|
|
4572
|
-
},
|
|
4928
|
+
},
|
|
4929
|
+
text: {
|
|
4930
|
+
order: 1,
|
|
4931
|
+
cursor: disabledOrLoading ? 'default' : 'pointer',
|
|
4932
|
+
...textSmallStyle,
|
|
4933
|
+
color: disabledOrLoading ? disabledColor : primaryColor,
|
|
4934
|
+
transition: getTransition('color'),
|
|
4935
|
+
...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { padding: `2px 0 0 ${spacingStaticSmall}` })),
|
|
4936
|
+
},
|
|
4937
|
+
...getFunctionalComponentRequiredStyles(),
|
|
4938
|
+
...getFunctionalComponentStateMessageStyles(theme, state),
|
|
4939
|
+
};
|
|
4573
4940
|
};
|
|
4574
4941
|
|
|
4575
4942
|
const getInlineSVGBackgroundImage = (path) => {
|
|
@@ -4584,33 +4951,41 @@ const getComponentCss$S = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
|
4584
4951
|
const indeterminateIconColor = isHighContrastMode
|
|
4585
4952
|
? canvasColor
|
|
4586
4953
|
: getThemedColors(theme).primaryColor.replace(/#/g, '%23');
|
|
4587
|
-
return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, isLoading, theme),
|
|
4588
|
-
|
|
4954
|
+
return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, isLoading, theme), {
|
|
4955
|
+
'@global': {
|
|
4956
|
+
'::slotted': addImportantToEachRule({
|
|
4957
|
+
'&(input)': {
|
|
4589
4958
|
borderRadius: borderRadiusSmall,
|
|
4590
|
-
} }, (!isLoading && {
|
|
4591
|
-
'&(input:checked)': {
|
|
4592
|
-
backgroundImage: getInlineSVGBackgroundImage(`<path fill="${checkedIconColor}" d="m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z"/>`),
|
|
4593
4959
|
},
|
|
4594
|
-
|
|
4960
|
+
...(!isLoading && {
|
|
4961
|
+
'&(input:checked)': {
|
|
4962
|
+
backgroundImage: getInlineSVGBackgroundImage(`<path fill="${checkedIconColor}" d="m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z"/>`),
|
|
4963
|
+
},
|
|
4964
|
+
}),
|
|
4965
|
+
'&(input:indeterminate)': {
|
|
4595
4966
|
backgroundImage: getInlineSVGBackgroundImage(`<path fill="${indeterminateIconColor}" d="m20,11v2H4v-2h16Z"/>`),
|
|
4596
|
-
} }), (!isDisabled && {
|
|
4597
|
-
'&(input:focus)::before': {
|
|
4598
|
-
borderRadius: borderRadiusMedium,
|
|
4599
4967
|
},
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
transform: 'translate(-50%, -50%)',
|
|
4607
|
-
height: fontLineHeight,
|
|
4608
|
-
width: fontLineHeight,
|
|
4609
|
-
fontFamily,
|
|
4610
|
-
fontSize: '1rem',
|
|
4611
|
-
cursor: 'not-allowed',
|
|
4968
|
+
...(!isDisabled && {
|
|
4969
|
+
'&(input:focus)::before': {
|
|
4970
|
+
borderRadius: borderRadiusMedium,
|
|
4971
|
+
},
|
|
4972
|
+
}),
|
|
4973
|
+
}),
|
|
4612
4974
|
},
|
|
4613
|
-
|
|
4975
|
+
...(isLoading && {
|
|
4976
|
+
spinner: {
|
|
4977
|
+
position: 'absolute',
|
|
4978
|
+
top: `calc(${fontLineHeight}/2 + 2px)`,
|
|
4979
|
+
left: `calc(${fontLineHeight}/2 + 2px)`,
|
|
4980
|
+
transform: 'translate(-50%, -50%)',
|
|
4981
|
+
height: fontLineHeight,
|
|
4982
|
+
width: fontLineHeight,
|
|
4983
|
+
fontFamily,
|
|
4984
|
+
fontSize: '1rem',
|
|
4985
|
+
cursor: 'not-allowed',
|
|
4986
|
+
},
|
|
4987
|
+
}),
|
|
4988
|
+
}));
|
|
4614
4989
|
};
|
|
4615
4990
|
|
|
4616
4991
|
const widthMap = {
|
|
@@ -4621,21 +4996,27 @@ const widthMap = {
|
|
|
4621
4996
|
const getComponentCss$R = (width) => {
|
|
4622
4997
|
return getCss({
|
|
4623
4998
|
'@global': {
|
|
4624
|
-
':host':
|
|
4999
|
+
':host': {
|
|
5000
|
+
display: 'block',
|
|
5001
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
5002
|
+
},
|
|
5003
|
+
},
|
|
5004
|
+
root: {
|
|
5005
|
+
minWidth: 0,
|
|
5006
|
+
...(['full', 'fluid'].includes(width)
|
|
5007
|
+
? {
|
|
5008
|
+
padding: `0 ${gridFullOffset}`,
|
|
5009
|
+
}
|
|
5010
|
+
: {
|
|
5011
|
+
padding: `0 ${widthMap[width].base}`,
|
|
5012
|
+
[getMediaQueryMin('s')]: {
|
|
5013
|
+
padding: `0 ${widthMap[width].s}`,
|
|
5014
|
+
},
|
|
5015
|
+
[getMediaQueryMin('xxl')]: {
|
|
5016
|
+
padding: `0 ${widthMap[width].xxl}`,
|
|
5017
|
+
},
|
|
5018
|
+
}),
|
|
4625
5019
|
},
|
|
4626
|
-
root: Object.assign({ minWidth: 0 }, (['full', 'fluid'].includes(width)
|
|
4627
|
-
? {
|
|
4628
|
-
padding: `0 ${gridFullOffset}`,
|
|
4629
|
-
}
|
|
4630
|
-
: {
|
|
4631
|
-
padding: `0 ${widthMap[width].base}`,
|
|
4632
|
-
[getMediaQueryMin('s')]: {
|
|
4633
|
-
padding: `0 ${widthMap[width].s}`,
|
|
4634
|
-
},
|
|
4635
|
-
[getMediaQueryMin('xxl')]: {
|
|
4636
|
-
padding: `0 ${widthMap[width].xxl}`,
|
|
4637
|
-
},
|
|
4638
|
-
})),
|
|
4639
5020
|
});
|
|
4640
5021
|
};
|
|
4641
5022
|
|
|
@@ -4654,8 +5035,23 @@ const getDimensionStyle = {
|
|
|
4654
5035
|
const getComponentCss$Q = () => {
|
|
4655
5036
|
return getCss({
|
|
4656
5037
|
'@global': {
|
|
4657
|
-
':host':
|
|
4658
|
-
|
|
5038
|
+
':host': {
|
|
5039
|
+
position: 'relative',
|
|
5040
|
+
display: 'inline-block',
|
|
5041
|
+
verticalAlign: 'top',
|
|
5042
|
+
...addImportantToEachRule({
|
|
5043
|
+
outline: 0,
|
|
5044
|
+
boxSizing: 'content-box',
|
|
5045
|
+
...getDimensionStyle,
|
|
5046
|
+
...hostHiddenStyles,
|
|
5047
|
+
}),
|
|
5048
|
+
},
|
|
5049
|
+
a: {
|
|
5050
|
+
display: 'block',
|
|
5051
|
+
textDecoration: 'none',
|
|
5052
|
+
...getDimensionStyle,
|
|
5053
|
+
...focusPseudoJssStyle,
|
|
5054
|
+
},
|
|
4659
5055
|
picture: {
|
|
4660
5056
|
display: 'block',
|
|
4661
5057
|
width: `min(${width}px, 100%)`,
|
|
@@ -4675,12 +5071,23 @@ const getComponentCss$Q = () => {
|
|
|
4675
5071
|
const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
4676
5072
|
|
|
4677
5073
|
const getTypographyRootJssStyle = (baseTextStyle, responsiveStyle, align, color, ellipsis, theme) => {
|
|
4678
|
-
return
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
5074
|
+
return {
|
|
5075
|
+
margin: 0,
|
|
5076
|
+
padding: 0,
|
|
5077
|
+
...baseTextStyle,
|
|
5078
|
+
color: getThemedTypographyColor(theme, color),
|
|
5079
|
+
textAlign: align,
|
|
5080
|
+
letterSpacing: 'normal',
|
|
5081
|
+
listStyleType: 'none',
|
|
5082
|
+
whiteSpace: 'inherit',
|
|
5083
|
+
...(ellipsis && {
|
|
5084
|
+
maxWidth: '100%',
|
|
5085
|
+
overflow: 'hidden',
|
|
5086
|
+
textOverflow: 'ellipsis',
|
|
5087
|
+
whiteSpace: 'nowrap',
|
|
5088
|
+
}),
|
|
5089
|
+
...responsiveStyle,
|
|
5090
|
+
};
|
|
4684
5091
|
};
|
|
4685
5092
|
const getTypographySlottedJssStyle = () => {
|
|
4686
5093
|
return {
|
|
@@ -4710,7 +5117,10 @@ const sizeMap$4 = {
|
|
|
4710
5117
|
const getComponentCss$P = (size, align, color, ellipsis, theme) => {
|
|
4711
5118
|
return getCss({
|
|
4712
5119
|
'@global': {
|
|
4713
|
-
':host':
|
|
5120
|
+
':host': {
|
|
5121
|
+
display: 'block',
|
|
5122
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
5123
|
+
},
|
|
4714
5124
|
'::slotted': {
|
|
4715
5125
|
[DISPLAY_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
|
|
4716
5126
|
},
|
|
@@ -4730,38 +5140,80 @@ const getComponentCss$O = (color, orientation, theme) => {
|
|
|
4730
5140
|
};
|
|
4731
5141
|
return getCss({
|
|
4732
5142
|
'@global': {
|
|
4733
|
-
':host':
|
|
4734
|
-
|
|
5143
|
+
':host': {
|
|
5144
|
+
display: 'block',
|
|
5145
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
5146
|
+
},
|
|
5147
|
+
hr: {
|
|
5148
|
+
margin: 0,
|
|
5149
|
+
padding: 0,
|
|
5150
|
+
border: 'none',
|
|
5151
|
+
textAlign: 'left',
|
|
5152
|
+
background: isHighContrastMode ? getHighContrastColors().canvasTextColor : colorMap[color],
|
|
5153
|
+
...buildResponsiveStyles(orientation, (o) => o === 'horizontal' ? { height: '1px', width: '100%' } : { height: '100%', width: '1px' }),
|
|
5154
|
+
},
|
|
4735
5155
|
},
|
|
4736
5156
|
});
|
|
4737
5157
|
};
|
|
4738
5158
|
|
|
4739
5159
|
const getComponentCss$N = (state, labelSize, hasLabel, theme) => {
|
|
4740
|
-
return getCss(
|
|
5160
|
+
return getCss({
|
|
5161
|
+
'@global': {
|
|
5162
|
+
':host': addImportantToEachRule({
|
|
5163
|
+
display: 'block',
|
|
5164
|
+
...hostHiddenStyles,
|
|
5165
|
+
}),
|
|
5166
|
+
fieldset: {
|
|
4741
5167
|
margin: 0,
|
|
4742
5168
|
padding: 0,
|
|
4743
5169
|
border: 'none',
|
|
4744
|
-
}
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
5170
|
+
},
|
|
5171
|
+
...(hasLabel && {
|
|
5172
|
+
legend: {
|
|
5173
|
+
margin: `0 0 ${spacingStaticMedium}`,
|
|
5174
|
+
padding: 0,
|
|
5175
|
+
color: getThemedColors(theme).primaryColor,
|
|
5176
|
+
...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
|
|
5177
|
+
},
|
|
5178
|
+
}),
|
|
4749
5179
|
},
|
|
4750
|
-
|
|
5180
|
+
...getFunctionalComponentRequiredStyles(),
|
|
5181
|
+
...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
|
|
5182
|
+
message: {
|
|
5183
|
+
marginTop: spacingStaticMedium,
|
|
5184
|
+
},
|
|
5185
|
+
}),
|
|
5186
|
+
});
|
|
4751
5187
|
};
|
|
4752
5188
|
|
|
4753
5189
|
const getComponentCss$M = (state, labelSize, hasLabel, theme) => {
|
|
4754
|
-
return getCss(
|
|
5190
|
+
return getCss({
|
|
5191
|
+
'@global': {
|
|
5192
|
+
':host': addImportantToEachRule({
|
|
5193
|
+
display: 'block',
|
|
5194
|
+
...hostHiddenStyles,
|
|
5195
|
+
}),
|
|
5196
|
+
fieldset: {
|
|
4755
5197
|
margin: 0,
|
|
4756
5198
|
padding: 0,
|
|
4757
5199
|
border: 'none',
|
|
4758
|
-
}
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
5200
|
+
},
|
|
5201
|
+
...(hasLabel && {
|
|
5202
|
+
legend: {
|
|
5203
|
+
margin: `0 0 ${spacingStaticMedium}`,
|
|
5204
|
+
padding: 0,
|
|
5205
|
+
color: getThemedColors(theme).primaryColor,
|
|
5206
|
+
...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
|
|
5207
|
+
},
|
|
5208
|
+
}),
|
|
4763
5209
|
},
|
|
4764
|
-
|
|
5210
|
+
...getFunctionalComponentRequiredStyles(),
|
|
5211
|
+
...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
|
|
5212
|
+
message: {
|
|
5213
|
+
marginTop: spacingStaticMedium,
|
|
5214
|
+
},
|
|
5215
|
+
}),
|
|
5216
|
+
});
|
|
4765
5217
|
};
|
|
4766
5218
|
|
|
4767
5219
|
const flexItemWidths = {
|
|
@@ -4777,17 +5229,21 @@ const flexItemWidths = {
|
|
|
4777
5229
|
const getComponentCss$L = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
4778
5230
|
return getCss({
|
|
4779
5231
|
'@global': {
|
|
4780
|
-
':host': addImportantToEachRule(
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
}))
|
|
4790
|
-
|
|
5232
|
+
':host': addImportantToEachRule({
|
|
5233
|
+
boxSizing: 'border-box',
|
|
5234
|
+
...hostHiddenStyles,
|
|
5235
|
+
...mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
|
|
5236
|
+
width: `${flexItemWidths[widthResponsive]}%`,
|
|
5237
|
+
})), buildResponsiveStyles(offset, (offsetResponsive) => ({
|
|
5238
|
+
marginLeft: `${flexItemWidths[offsetResponsive]}%`,
|
|
5239
|
+
})), buildResponsiveStyles(alignSelf, (alignSelfResponsive) => ({
|
|
5240
|
+
alignSelf: alignSelfResponsive,
|
|
5241
|
+
})), flex !== 'initial' // flex shorthand conflicts with grow and shrink, which means even default grow or shrink props would override flex
|
|
5242
|
+
? buildResponsiveStyles(flex, (flexResponsive) => ({
|
|
5243
|
+
flex: flexResponsive === 'equal' ? '1 1 0' : flexResponsive,
|
|
5244
|
+
}))
|
|
5245
|
+
: mergeDeep(buildResponsiveStyles(grow, (flexGrow) => ({ flexGrow })), buildResponsiveStyles(shrink, (flexShrink) => ({ flexShrink })))),
|
|
5246
|
+
}),
|
|
4791
5247
|
},
|
|
4792
5248
|
});
|
|
4793
5249
|
};
|
|
@@ -4826,56 +5282,108 @@ const getComponentCss$J = (isOpen, position, hasHeader, hasFooter, hasSubFooter,
|
|
|
4826
5282
|
const contentPadding = `${spacingStaticMedium} ${spacingFluidLarge} ${spacingStaticMedium} ${spacingFluidLarge}`;
|
|
4827
5283
|
const shadowColor = isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor;
|
|
4828
5284
|
const transparentColor = isThemeDark(theme) ? 'rgba(14, 14, 18, 0)' : 'rgba(255, 255, 255, 0)';
|
|
4829
|
-
return getCss(
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
:
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
overscrollBehaviorY: 'none',
|
|
4855
|
-
})), { height: '100%', minWidth: minWidthDefault, maxWidth: `var(${cssVariableMaxWidth}, ${maxWidthDefault})`, background: backgroundColor, opacity: isOpen ? 1 : 0, transform: isOpen ? 'initial' : `translate3d(${isPositionLeft ? '-100%' : '100%'}, 0, 0)`, transition: `opacity ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction} ${isOpen ? '0s' : flyoutTransitionDuration}, transform ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction}`, boxShadow: `${isPositionLeft ? '3px' : '-3px'} 0px 30px rgba(0, 0, 0, 0.25)` }), content: Object.assign({ padding: contentPadding }, (!hasSubFooter && {
|
|
4856
|
-
overflowY: 'auto',
|
|
4857
|
-
WebkitOverflowScrolling: 'touch',
|
|
4858
|
-
backgroundImage: `linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${shadowColor}, ${transparentColor}), linear-gradient(to bottom, ${shadowColor}, ${transparentColor})`,
|
|
4859
|
-
backgroundPosition: 'bottom center, top center, bottom center, top center',
|
|
4860
|
-
backgroundRepeat: 'no-repeat',
|
|
4861
|
-
backgroundSize: '100% 20px, 100% 20px, 100% 10px, 100% 10px',
|
|
4862
|
-
backgroundAttachment: 'local, local, scroll, scroll',
|
|
4863
|
-
overscrollBehaviorY: 'none',
|
|
4864
|
-
})) }), (hasFooter && {
|
|
4865
|
-
footer: {
|
|
5285
|
+
return getCss({
|
|
5286
|
+
'@global': addImportantToEachRule({
|
|
5287
|
+
':host': {
|
|
5288
|
+
display: 'flex',
|
|
5289
|
+
position: 'fixed',
|
|
5290
|
+
zIndex: FLYOUT_Z_INDEX,
|
|
5291
|
+
...(isOpen
|
|
5292
|
+
? {
|
|
5293
|
+
visibility: 'inherit',
|
|
5294
|
+
}
|
|
5295
|
+
: {
|
|
5296
|
+
visibility: 'hidden',
|
|
5297
|
+
transition: `visibility 0s linear ${flyoutTransitionDuration}`,
|
|
5298
|
+
}),
|
|
5299
|
+
...getInsetJssStyle(),
|
|
5300
|
+
...getFrostedGlassBackgroundJssStyles(isOpen, flyoutTransitionDuration),
|
|
5301
|
+
...hostHiddenStyles,
|
|
5302
|
+
},
|
|
5303
|
+
}),
|
|
5304
|
+
header: {
|
|
5305
|
+
display: 'flex',
|
|
5306
|
+
...(hasHeader && {
|
|
5307
|
+
flexDirection: 'row-reverse',
|
|
5308
|
+
}),
|
|
5309
|
+
justifyContent: 'flex-end',
|
|
4866
5310
|
background: backgroundColor,
|
|
4867
|
-
padding: contentPadding,
|
|
4868
5311
|
position: 'sticky',
|
|
4869
|
-
|
|
5312
|
+
top: 0,
|
|
5313
|
+
},
|
|
5314
|
+
[`${headerShadowClass}`]: {
|
|
5315
|
+
boxShadow: `${isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor} 0px 5px 10px`,
|
|
5316
|
+
},
|
|
5317
|
+
...(hasHeader && {
|
|
5318
|
+
'header-content': {
|
|
5319
|
+
flex: 'auto',
|
|
5320
|
+
padding: `${spacingStaticMedium} 0 ${spacingStaticMedium} ${spacingFluidLarge}`,
|
|
5321
|
+
},
|
|
5322
|
+
}),
|
|
5323
|
+
dismiss: {
|
|
5324
|
+
margin: spacingStaticMedium,
|
|
5325
|
+
height: 'fit-content',
|
|
5326
|
+
border: `2px solid ${backgroundColor}`,
|
|
5327
|
+
borderRadius: '4px',
|
|
5328
|
+
background: backgroundColor,
|
|
5329
|
+
...hoverMediaQuery({
|
|
5330
|
+
'&:hover': {
|
|
5331
|
+
background: darkThemeContrastHighColor,
|
|
5332
|
+
borderColor: darkThemeContrastHighColor,
|
|
5333
|
+
},
|
|
5334
|
+
}),
|
|
4870
5335
|
},
|
|
4871
|
-
|
|
4872
|
-
|
|
5336
|
+
root: {
|
|
5337
|
+
color: primaryColor,
|
|
5338
|
+
display: 'flex',
|
|
5339
|
+
flexDirection: 'column',
|
|
5340
|
+
position: 'relative',
|
|
5341
|
+
[isPositionLeft ? 'marginRight' : 'marginLeft']: 'auto',
|
|
5342
|
+
boxSizing: 'border-box',
|
|
5343
|
+
...(hasSubFooter && {
|
|
5344
|
+
overflowY: 'auto',
|
|
5345
|
+
overscrollBehaviorY: 'none',
|
|
5346
|
+
}),
|
|
5347
|
+
height: '100%',
|
|
5348
|
+
minWidth: minWidthDefault,
|
|
5349
|
+
maxWidth: `var(${cssVariableMaxWidth}, ${maxWidthDefault})`,
|
|
5350
|
+
background: backgroundColor,
|
|
5351
|
+
opacity: isOpen ? 1 : 0,
|
|
5352
|
+
transform: isOpen ? 'initial' : `translate3d(${isPositionLeft ? '-100%' : '100%'}, 0, 0)`,
|
|
5353
|
+
transition: `opacity ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction} ${isOpen ? '0s' : flyoutTransitionDuration}, transform ${flyoutTransitionDuration} ${flyoutTransitionTimingFunction}`,
|
|
5354
|
+
boxShadow: `${isPositionLeft ? '3px' : '-3px'} 0px 30px rgba(0, 0, 0, 0.25)`,
|
|
4873
5355
|
},
|
|
4874
|
-
|
|
4875
|
-
['sub-footer']: {
|
|
5356
|
+
content: {
|
|
4876
5357
|
padding: contentPadding,
|
|
5358
|
+
// If sub-footer is used scroll shadows have to be done via JS
|
|
5359
|
+
...(!hasSubFooter && {
|
|
5360
|
+
overflowY: 'auto',
|
|
5361
|
+
WebkitOverflowScrolling: 'touch',
|
|
5362
|
+
backgroundImage: `linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${shadowColor}, ${transparentColor}), linear-gradient(to bottom, ${shadowColor}, ${transparentColor})`,
|
|
5363
|
+
backgroundPosition: 'bottom center, top center, bottom center, top center',
|
|
5364
|
+
backgroundRepeat: 'no-repeat',
|
|
5365
|
+
backgroundSize: '100% 20px, 100% 20px, 100% 10px, 100% 10px',
|
|
5366
|
+
backgroundAttachment: 'local, local, scroll, scroll',
|
|
5367
|
+
overscrollBehaviorY: 'none',
|
|
5368
|
+
}),
|
|
4877
5369
|
},
|
|
4878
|
-
|
|
5370
|
+
...(hasFooter && {
|
|
5371
|
+
footer: {
|
|
5372
|
+
background: backgroundColor,
|
|
5373
|
+
padding: contentPadding,
|
|
5374
|
+
position: 'sticky',
|
|
5375
|
+
bottom: 0,
|
|
5376
|
+
},
|
|
5377
|
+
[`${footerShadowClass}`]: {
|
|
5378
|
+
boxShadow: `${isThemeDark(theme) ? flyoutBoxShadowColorDark : flyoutBoxShadowColor} 0px -5px 10px`,
|
|
5379
|
+
},
|
|
5380
|
+
}),
|
|
5381
|
+
...(hasSubFooter && {
|
|
5382
|
+
['sub-footer']: {
|
|
5383
|
+
padding: contentPadding,
|
|
5384
|
+
},
|
|
5385
|
+
}),
|
|
5386
|
+
});
|
|
4879
5387
|
};
|
|
4880
5388
|
|
|
4881
5389
|
const gutter$1 = `calc(${gridGap} / 2)`;
|
|
@@ -4885,12 +5393,18 @@ const gridItemWidths = [
|
|
|
4885
5393
|
const getComponentCss$I = (size, offset) => {
|
|
4886
5394
|
return getCss({
|
|
4887
5395
|
'@global': {
|
|
4888
|
-
':host': addImportantToEachRule(
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
5396
|
+
':host': addImportantToEachRule({
|
|
5397
|
+
paddingLeft: gutter$1,
|
|
5398
|
+
paddingRight: gutter$1,
|
|
5399
|
+
boxSizing: 'border-box',
|
|
5400
|
+
...hostHiddenStyles,
|
|
5401
|
+
...mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
|
|
5402
|
+
width: `${gridItemWidths[sizeResponsive]}%`,
|
|
5403
|
+
minWidth: `${gridItemWidths[sizeResponsive]}%`,
|
|
5404
|
+
})), buildResponsiveStyles(offset, (offsetResponsive) => ({
|
|
5405
|
+
marginLeft: `${gridItemWidths[offsetResponsive]}%`,
|
|
5406
|
+
}))),
|
|
5407
|
+
}),
|
|
4894
5408
|
},
|
|
4895
5409
|
});
|
|
4896
5410
|
};
|
|
@@ -4899,7 +5413,15 @@ const gutter = `calc(${gridGap} / -2)`;
|
|
|
4899
5413
|
const getComponentCss$H = (direction, wrap) => {
|
|
4900
5414
|
return getCss({
|
|
4901
5415
|
'@global': {
|
|
4902
|
-
':host': addImportantToEachRule(
|
|
5416
|
+
':host': addImportantToEachRule({
|
|
5417
|
+
display: 'flex',
|
|
5418
|
+
flex: 'auto',
|
|
5419
|
+
width: 'auto',
|
|
5420
|
+
marginLeft: gutter,
|
|
5421
|
+
marginRight: gutter,
|
|
5422
|
+
...hostHiddenStyles,
|
|
5423
|
+
...mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))),
|
|
5424
|
+
}),
|
|
4903
5425
|
},
|
|
4904
5426
|
});
|
|
4905
5427
|
};
|
|
@@ -4914,7 +5436,10 @@ const sizeMap$3 = {
|
|
|
4914
5436
|
const getComponentCss$G = (size, align, color, ellipsis, theme) => {
|
|
4915
5437
|
return getCss({
|
|
4916
5438
|
'@global': {
|
|
4917
|
-
':host':
|
|
5439
|
+
':host': {
|
|
5440
|
+
display: 'block',
|
|
5441
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
5442
|
+
},
|
|
4918
5443
|
'::slotted': {
|
|
4919
5444
|
[HEADING_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
|
|
4920
5445
|
},
|
|
@@ -4946,11 +5471,13 @@ const headlineSizeMap = {
|
|
|
4946
5471
|
'headline-5': fontSizeHeadingSmall,
|
|
4947
5472
|
};
|
|
4948
5473
|
const getHeadlineVariantJssStyle = (variant) => {
|
|
4949
|
-
return
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
5474
|
+
return {
|
|
5475
|
+
...(variant === 'large-title'
|
|
5476
|
+
? displayMediumStyle
|
|
5477
|
+
: {
|
|
5478
|
+
fontSize: headlineSizeMap[variant],
|
|
5479
|
+
}),
|
|
5480
|
+
};
|
|
4954
5481
|
};
|
|
4955
5482
|
const textSizeMap = {
|
|
4956
5483
|
'xx-small': fontSizeTextXXSmall,
|
|
@@ -4968,7 +5495,10 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
4968
5495
|
const getComponentCss$F = (variant, align, color, ellipsis, theme) => {
|
|
4969
5496
|
return getCss({
|
|
4970
5497
|
'@global': {
|
|
4971
|
-
':host':
|
|
5498
|
+
':host': {
|
|
5499
|
+
display: 'block',
|
|
5500
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
5501
|
+
},
|
|
4972
5502
|
'::slotted': {
|
|
4973
5503
|
[HEADLINE_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
|
|
4974
5504
|
},
|
|
@@ -5050,23 +5580,42 @@ const getComponentCss$E = (color, size, theme) => {
|
|
|
5050
5580
|
const isSizeInherit = size === 'inherit';
|
|
5051
5581
|
const isDark = isThemeDark(theme);
|
|
5052
5582
|
return getCss({
|
|
5053
|
-
'@global':
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
:
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5583
|
+
'@global': {
|
|
5584
|
+
':host': {
|
|
5585
|
+
display: 'inline-block',
|
|
5586
|
+
verticalAlign: 'top',
|
|
5587
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
5588
|
+
},
|
|
5589
|
+
img: {
|
|
5590
|
+
display: 'block',
|
|
5591
|
+
margin: 0,
|
|
5592
|
+
padding: 0,
|
|
5593
|
+
pointerEvents: 'none',
|
|
5594
|
+
...(!isColorInherit && {
|
|
5595
|
+
filter: filter[theme][color],
|
|
5596
|
+
...(isHighContrastMode &&
|
|
5597
|
+
getSchemedHighContrastMediaQuery({
|
|
5598
|
+
filter: filter.light[color],
|
|
5599
|
+
}, {
|
|
5600
|
+
filter: filter.dark[color],
|
|
5601
|
+
})),
|
|
5602
|
+
WebkitAnimation: `${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`} 1ms`, // needed to enforce repaint in Safari if theme is switched programmatically.
|
|
5603
|
+
}),
|
|
5604
|
+
...(isSizeInherit
|
|
5605
|
+
? {
|
|
5606
|
+
width: size,
|
|
5607
|
+
height: size,
|
|
5608
|
+
}
|
|
5609
|
+
: {
|
|
5610
|
+
width: fontLineHeight,
|
|
5611
|
+
height: fontLineHeight,
|
|
5612
|
+
font: `${sizeMap$2[size]} ${fontFamily}`,
|
|
5613
|
+
}),
|
|
5614
|
+
},
|
|
5615
|
+
...(!isColorInherit && {
|
|
5616
|
+
[`@keyframes ${isDark ? `${keyFramesDark}-${color}` : `${keyFramesLight}-${color}`}`]: forceRerenderAnimationStyle,
|
|
5617
|
+
}),
|
|
5618
|
+
},
|
|
5070
5619
|
});
|
|
5071
5620
|
};
|
|
5072
5621
|
|
|
@@ -5084,14 +5633,23 @@ const getBackgroundColor = (state, theme) => {
|
|
|
5084
5633
|
return colorMap[state];
|
|
5085
5634
|
};
|
|
5086
5635
|
const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
|
|
5087
|
-
return
|
|
5636
|
+
return {
|
|
5637
|
+
display: 'grid',
|
|
5088
5638
|
// 2 columns for content and optional close button
|
|
5089
|
-
gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
|
|
5090
|
-
|
|
5091
|
-
|
|
5639
|
+
gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
|
|
5640
|
+
gap: spacingStaticMedium,
|
|
5641
|
+
placeItems: 'start',
|
|
5642
|
+
padding: spacingStaticMedium,
|
|
5643
|
+
background: getBackgroundColor(state, theme),
|
|
5644
|
+
borderRadius: borderRadiusSmall,
|
|
5645
|
+
...(isHighContrastMode && {
|
|
5646
|
+
outline: '1px solid transparent',
|
|
5647
|
+
}),
|
|
5648
|
+
[mediaQueryMinS$1]: {
|
|
5092
5649
|
// 4 columns are for icon, content, optional action button and optional close button
|
|
5093
5650
|
gridTemplateColumns: `auto minmax(auto, 1fr)${hasAction ? ' auto' : ''}${hasClose ? ' auto' : ''}`,
|
|
5094
|
-
}
|
|
5651
|
+
},
|
|
5652
|
+
};
|
|
5095
5653
|
};
|
|
5096
5654
|
const getNotificationIconJssStyle = () => ({
|
|
5097
5655
|
[mediaQueryMaxS$1]: {
|
|
@@ -5109,36 +5667,60 @@ const getNotificationContentJssStyle = () => ({
|
|
|
5109
5667
|
|
|
5110
5668
|
const mediaQueryMaxS = getMediaQueryMax('s');
|
|
5111
5669
|
const getComponentCss$D = (state, hasAction, hasClose, theme) => {
|
|
5112
|
-
return getCss(
|
|
5113
|
-
|
|
5670
|
+
return getCss({
|
|
5671
|
+
'@global': {
|
|
5672
|
+
':host': addImportantToEachRule({
|
|
5673
|
+
...getNotificationRootJssStyle(state, hasAction, hasClose, theme),
|
|
5674
|
+
...hostHiddenStyles,
|
|
5675
|
+
}),
|
|
5114
5676
|
h5: headingSmallStyle,
|
|
5115
5677
|
p: textSmallStyle,
|
|
5116
5678
|
'h5,p': {
|
|
5117
5679
|
margin: 0,
|
|
5118
5680
|
color: getThemedColors(theme).primaryColor,
|
|
5119
5681
|
},
|
|
5120
|
-
}, icon: getNotificationIconJssStyle(), content: getNotificationContentJssStyle() }, (hasAction && {
|
|
5121
|
-
action: {
|
|
5122
|
-
[mediaQueryMaxS]: {
|
|
5123
|
-
gridRowStart: 2,
|
|
5124
|
-
},
|
|
5125
5682
|
},
|
|
5126
|
-
|
|
5683
|
+
icon: getNotificationIconJssStyle(),
|
|
5684
|
+
content: getNotificationContentJssStyle(),
|
|
5685
|
+
...(hasAction && {
|
|
5686
|
+
action: {
|
|
5687
|
+
[mediaQueryMaxS]: {
|
|
5688
|
+
gridRowStart: 2,
|
|
5689
|
+
},
|
|
5690
|
+
},
|
|
5691
|
+
}),
|
|
5692
|
+
});
|
|
5127
5693
|
};
|
|
5128
5694
|
|
|
5129
5695
|
const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
5130
5696
|
const { focusColor } = getThemedColors(theme);
|
|
5131
|
-
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme),
|
|
5697
|
+
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), {
|
|
5698
|
+
root: {
|
|
5699
|
+
textDecoration: underline ? 'underline' : 'none',
|
|
5700
|
+
},
|
|
5701
|
+
}, hasSlottedAnchor && {
|
|
5132
5702
|
'@global': addImportantToEachRule({
|
|
5133
5703
|
'::slotted': {
|
|
5134
|
-
'&(a)':
|
|
5704
|
+
'&(a)': {
|
|
5705
|
+
...getResetInitialStylesForSlottedAnchor,
|
|
5706
|
+
textDecoration: underline ? 'underline' : 'none',
|
|
5707
|
+
font: 'inherit',
|
|
5708
|
+
color: 'inherit',
|
|
5709
|
+
},
|
|
5135
5710
|
// The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
|
|
5136
5711
|
// since Safari prior to this major release does not support pseudo-elements in the slotted context
|
|
5137
5712
|
// (https://bugs.webkit.org/show_bug.cgi?id=178237)
|
|
5138
|
-
'&(a)::before':
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5713
|
+
'&(a)::before': {
|
|
5714
|
+
content: '""',
|
|
5715
|
+
position: 'fixed',
|
|
5716
|
+
top: offsetVertical,
|
|
5717
|
+
bottom: offsetVertical,
|
|
5718
|
+
borderRadius: borderRadiusSmall,
|
|
5719
|
+
...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
|
|
5720
|
+
right: hideLabelValue ? offsetVertical : offsetHorizontal,
|
|
5721
|
+
left: hideLabelValue ? offsetVertical : offsetHorizontal,
|
|
5722
|
+
})),
|
|
5723
|
+
},
|
|
5142
5724
|
'&(a:focus)::before': {
|
|
5143
5725
|
border: `${borderWidthBase} solid ${focusColor}`,
|
|
5144
5726
|
},
|
|
@@ -5147,25 +5729,35 @@ const getComponentCss$C = (icon, iconSource, active, stretch, size, hideLabel, a
|
|
|
5147
5729
|
},
|
|
5148
5730
|
},
|
|
5149
5731
|
}),
|
|
5150
|
-
}))
|
|
5151
|
-
textDecoration: underline ? 'underline' : 'none',
|
|
5152
|
-
} })));
|
|
5732
|
+
}));
|
|
5153
5733
|
};
|
|
5154
5734
|
|
|
5155
5735
|
const getComponentCss$B = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
|
|
5156
5736
|
const { focusColor } = getThemedColors(theme);
|
|
5157
5737
|
const { linkColor } = getHighContrastColors();
|
|
5158
|
-
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme),
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5738
|
+
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), hasSlottedAnchor && {
|
|
5739
|
+
...(isHighContrastMode && {
|
|
5740
|
+
root: {
|
|
5741
|
+
borderColor: linkColor,
|
|
5742
|
+
},
|
|
5743
|
+
}),
|
|
5744
|
+
'@global': addImportantToEachRule({
|
|
5163
5745
|
'::slotted': {
|
|
5164
|
-
'&(a)':
|
|
5746
|
+
'&(a)': {
|
|
5747
|
+
...getResetInitialStylesForSlottedAnchor,
|
|
5748
|
+
textDecoration: 'none',
|
|
5749
|
+
font: 'inherit',
|
|
5750
|
+
color: 'inherit',
|
|
5751
|
+
},
|
|
5165
5752
|
// The clickable area for Safari < ~15 (<= release date: 2021-10-28) is reduced to the slotted anchor itself,
|
|
5166
5753
|
// since Safari prior to this major release does not support pseudo-elements in the slotted context
|
|
5167
5754
|
// (https://bugs.webkit.org/show_bug.cgi?id=178237)
|
|
5168
|
-
'&(a)::before':
|
|
5755
|
+
'&(a)::before': {
|
|
5756
|
+
content: '""',
|
|
5757
|
+
position: 'fixed',
|
|
5758
|
+
borderRadius: borderRadiusMedium,
|
|
5759
|
+
...getInsetJssStyle(-6),
|
|
5760
|
+
},
|
|
5169
5761
|
// TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
|
|
5170
5762
|
'&(a::-moz-focus-inner)': {
|
|
5171
5763
|
border: 0,
|
|
@@ -5177,7 +5769,8 @@ const getComponentCss$B = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
5177
5769
|
border: 0,
|
|
5178
5770
|
},
|
|
5179
5771
|
},
|
|
5180
|
-
})
|
|
5772
|
+
}),
|
|
5773
|
+
}));
|
|
5181
5774
|
};
|
|
5182
5775
|
|
|
5183
5776
|
// array is redefined instead of using the one from in model-signature
|
|
@@ -5186,23 +5779,60 @@ const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
|
|
|
5186
5779
|
|
|
5187
5780
|
const getComponentCss$A = (aspectRatio, weight, direction, hasDescription) => {
|
|
5188
5781
|
const tileBaseStyles = getTileBaseStyles(aspectRatio);
|
|
5189
|
-
return getCss(
|
|
5782
|
+
return getCss({
|
|
5783
|
+
...tileBaseStyles,
|
|
5784
|
+
'@global': {
|
|
5785
|
+
...tileBaseStyles['@global'],
|
|
5786
|
+
[LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS.join(',')]: {
|
|
5190
5787
|
margin: addImportantToRule(0),
|
|
5191
|
-
}
|
|
5788
|
+
},
|
|
5789
|
+
},
|
|
5790
|
+
content: {
|
|
5791
|
+
...tileBaseStyles.content,
|
|
5792
|
+
flexDirection: 'column',
|
|
5793
|
+
bottom: 0,
|
|
5794
|
+
padding: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}`,
|
|
5795
|
+
...gradientToTopStyle,
|
|
5796
|
+
},
|
|
5797
|
+
model: {
|
|
5192
5798
|
position: 'absolute',
|
|
5193
5799
|
top: spacingFluidMedium,
|
|
5194
5800
|
left: spacingFluidMedium,
|
|
5195
|
-
},
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
}
|
|
5201
|
-
|
|
5801
|
+
},
|
|
5802
|
+
heading: {
|
|
5803
|
+
margin: 0,
|
|
5804
|
+
...textLargeStyle,
|
|
5805
|
+
...buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) })),
|
|
5806
|
+
},
|
|
5807
|
+
...(hasDescription && {
|
|
5808
|
+
description: {
|
|
5809
|
+
margin: '-12px 0 0 ',
|
|
5810
|
+
...textSmallStyle,
|
|
5811
|
+
},
|
|
5812
|
+
}),
|
|
5813
|
+
'link-group': {
|
|
5814
|
+
display: 'flex',
|
|
5815
|
+
width: '100%',
|
|
5816
|
+
gap: spacingFluidSmall,
|
|
5817
|
+
...buildResponsiveStyles(direction, getGroupDirectionJssStyles),
|
|
5818
|
+
},
|
|
5819
|
+
'link-overlay': {
|
|
5820
|
+
// covers entire tile, used for expanded click-area only
|
|
5821
|
+
position: 'fixed',
|
|
5822
|
+
...getInsetJssStyle(),
|
|
5823
|
+
},
|
|
5824
|
+
});
|
|
5825
|
+
};
|
|
5826
|
+
|
|
5202
5827
|
const getComponentCss$z = (...args) => {
|
|
5203
|
-
return getCss(
|
|
5828
|
+
return getCss({
|
|
5829
|
+
...getButtonLinkTileStyles(...args),
|
|
5830
|
+
'link-overlay': {
|
|
5204
5831
|
// covers entire tile, used for expanded click-area only
|
|
5205
|
-
position: 'fixed'
|
|
5832
|
+
position: 'fixed',
|
|
5833
|
+
...getInsetJssStyle(),
|
|
5834
|
+
},
|
|
5835
|
+
});
|
|
5206
5836
|
};
|
|
5207
5837
|
|
|
5208
5838
|
const baseSizes = {
|
|
@@ -5218,10 +5848,29 @@ const baseSizes = {
|
|
|
5218
5848
|
const getComponentCss$y = (size) => {
|
|
5219
5849
|
return getCss({
|
|
5220
5850
|
'@global': {
|
|
5221
|
-
':host':
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5851
|
+
':host': {
|
|
5852
|
+
position: 'relative',
|
|
5853
|
+
display: 'inline-flex',
|
|
5854
|
+
verticalAlign: 'top',
|
|
5855
|
+
...addImportantToEachRule({
|
|
5856
|
+
outline: 0,
|
|
5857
|
+
...hostHiddenStyles,
|
|
5858
|
+
}),
|
|
5859
|
+
},
|
|
5860
|
+
a: {
|
|
5861
|
+
display: 'block',
|
|
5862
|
+
textDecoration: 'none',
|
|
5863
|
+
...focusPseudoJssStyle,
|
|
5864
|
+
},
|
|
5865
|
+
picture: {
|
|
5866
|
+
display: 'block',
|
|
5867
|
+
...(size === 'responsive'
|
|
5868
|
+
? {
|
|
5869
|
+
...baseSizes.small,
|
|
5870
|
+
[getMediaQueryMin('l')]: baseSizes.medium,
|
|
5871
|
+
}
|
|
5872
|
+
: baseSizes[size]),
|
|
5873
|
+
},
|
|
5225
5874
|
img: {
|
|
5226
5875
|
display: 'block',
|
|
5227
5876
|
width: '100%',
|
|
@@ -5267,41 +5916,67 @@ const isFullscreenForXl = (fullscreen) => {
|
|
|
5267
5916
|
};
|
|
5268
5917
|
const getSlottedJssStyle = (marginValue, hasHeader, hasDismissButton) => {
|
|
5269
5918
|
const marginPx = `${-marginValue}px`;
|
|
5270
|
-
return
|
|
5919
|
+
return {
|
|
5920
|
+
[`&(.${stretchToFullModalWidthClassName})`]: {
|
|
5271
5921
|
width: `calc(100% + ${marginValue * 2}px)`,
|
|
5272
5922
|
margin: `0 ${marginPx}`,
|
|
5273
|
-
} }, (!hasHeader && {
|
|
5274
|
-
[`&(.${stretchToFullModalWidthClassName}:first-child)`]: {
|
|
5275
|
-
marginTop: hasDismissButton ? pxToRemWithUnit(-marginValue) : marginPx,
|
|
5276
5923
|
},
|
|
5277
|
-
|
|
5924
|
+
...(!hasHeader && {
|
|
5925
|
+
[`&(.${stretchToFullModalWidthClassName}:first-child)`]: {
|
|
5926
|
+
marginTop: hasDismissButton ? pxToRemWithUnit(-marginValue) : marginPx,
|
|
5927
|
+
},
|
|
5928
|
+
}),
|
|
5929
|
+
[`&(.${stretchToFullModalWidthClassName}:last-child)`]: {
|
|
5278
5930
|
marginBottom: marginPx,
|
|
5279
|
-
}
|
|
5931
|
+
},
|
|
5932
|
+
};
|
|
5280
5933
|
};
|
|
5281
5934
|
const getComponentCss$x = (isOpen, isFullscreen, hasDismissButton, hasHeader) => {
|
|
5282
5935
|
const isFullscreenForXlAndXxl = isFullscreenForXl(isFullscreen);
|
|
5283
5936
|
const duration = isOpen ? '.6s' : '.2s';
|
|
5284
|
-
return getCss(
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5937
|
+
return getCss({
|
|
5938
|
+
'@global': {
|
|
5939
|
+
':host': {
|
|
5940
|
+
...addImportantToEachRule({
|
|
5941
|
+
position: 'fixed',
|
|
5942
|
+
...getInsetJssStyle(),
|
|
5943
|
+
zIndex: MODAL_Z_INDEX,
|
|
5944
|
+
display: 'flex',
|
|
5945
|
+
alignItems: 'center',
|
|
5946
|
+
justifyContent: 'center',
|
|
5947
|
+
flexWrap: 'wrap',
|
|
5948
|
+
...(isOpen
|
|
5949
|
+
? {
|
|
5950
|
+
visibility: 'inherit',
|
|
5951
|
+
}
|
|
5952
|
+
: {
|
|
5953
|
+
visibility: 'hidden',
|
|
5954
|
+
transition: 'visibility 0s linear .2s',
|
|
5955
|
+
}),
|
|
5956
|
+
...hostHiddenStyles,
|
|
5957
|
+
...getFrostedGlassBackgroundJssStyles(isOpen, duration),
|
|
5958
|
+
}),
|
|
5959
|
+
overflowY: 'auto', // overrideable
|
|
5960
|
+
},
|
|
5961
|
+
'::slotted': addImportantToEachRule({
|
|
5962
|
+
...mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
|
|
5963
|
+
[`&(.${stretchToFullModalWidthClassName}`]: {
|
|
5964
|
+
'&:first-child)': {
|
|
5965
|
+
borderRadius: fullscreenValue ? 0 : '8px 8px 0 0',
|
|
5966
|
+
},
|
|
5967
|
+
'&:last-child)': {
|
|
5968
|
+
borderRadius: fullscreenValue ? 0 : '0 0 8px 8px',
|
|
5969
|
+
},
|
|
5300
5970
|
},
|
|
5301
|
-
},
|
|
5302
|
-
})
|
|
5303
|
-
h2:
|
|
5304
|
-
|
|
5971
|
+
}))),
|
|
5972
|
+
}),
|
|
5973
|
+
h2: {
|
|
5974
|
+
...headingLargeStyle,
|
|
5975
|
+
margin: 0,
|
|
5976
|
+
color: lightThemePrimaryColor,
|
|
5977
|
+
},
|
|
5978
|
+
},
|
|
5979
|
+
root: mergeDeep({
|
|
5305
5980
|
position: 'relative',
|
|
5306
5981
|
boxSizing: 'border-box',
|
|
5307
5982
|
transform: isOpen ? 'scale3d(1,1,1)' : 'scale3d(.9,.9,1)',
|
|
@@ -5310,25 +5985,46 @@ const getComponentCss$x = (isOpen, isFullscreen, hasDismissButton, hasHeader) =>
|
|
|
5310
5985
|
padding: hasDismissButton ? `${pxToRemWithUnit(32)} 32px 32px 32px` : '32px',
|
|
5311
5986
|
background: backgroundColor,
|
|
5312
5987
|
outline: isHighContrastMode ? '1px solid transparent' : 0,
|
|
5313
|
-
'&:focus::before':
|
|
5988
|
+
'&:focus::before': {
|
|
5989
|
+
content: '""',
|
|
5990
|
+
position: 'fixed',
|
|
5991
|
+
border: `${borderWidthBase} solid`,
|
|
5992
|
+
pointerEvents: 'none',
|
|
5993
|
+
...buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
|
|
5994
|
+
borderRadius: fullscreenValue ? 0 : '12px',
|
|
5995
|
+
borderColor: fullscreenValue ? lightThemePrimaryColor : darkThemePrimaryColor,
|
|
5996
|
+
...getInsetJssStyle(fullscreenValue ? 0 : -4),
|
|
5997
|
+
})),
|
|
5998
|
+
},
|
|
5314
5999
|
'&:not(:focus-visible)::before': {
|
|
5315
6000
|
border: 0,
|
|
5316
6001
|
},
|
|
5317
6002
|
[mediaQueryXl]: {
|
|
5318
6003
|
margin: isFullscreenForXlAndXxl ? 0 : `min(192px, 10vh) ${gridExtendedOffsetBase}`,
|
|
5319
6004
|
},
|
|
5320
|
-
}, buildResponsiveStyles(isFullscreen, getFullscreenJssStyles))
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
6005
|
+
}, buildResponsiveStyles(isFullscreen, getFullscreenJssStyles)),
|
|
6006
|
+
...(hasHeader && {
|
|
6007
|
+
header: {
|
|
6008
|
+
padding: '0 0 8px',
|
|
6009
|
+
},
|
|
6010
|
+
}),
|
|
6011
|
+
...(hasDismissButton && {
|
|
6012
|
+
dismiss: {
|
|
6013
|
+
position: 'absolute',
|
|
6014
|
+
top: '8px',
|
|
6015
|
+
right: '8px',
|
|
6016
|
+
border: `2px solid ${backgroundColor}`,
|
|
6017
|
+
borderRadius: '4px',
|
|
6018
|
+
background: backgroundColor,
|
|
6019
|
+
...hoverMediaQuery({
|
|
6020
|
+
'&:hover': {
|
|
6021
|
+
background: darkThemeContrastHighColor,
|
|
6022
|
+
borderColor: darkThemeContrastHighColor,
|
|
6023
|
+
},
|
|
6024
|
+
}),
|
|
5329
6025
|
},
|
|
5330
|
-
})
|
|
5331
|
-
})
|
|
6026
|
+
}),
|
|
6027
|
+
});
|
|
5332
6028
|
};
|
|
5333
6029
|
|
|
5334
6030
|
const modelSignatureHeight = 36;
|
|
@@ -5352,18 +6048,37 @@ const getComponentCss$w = (size, color, theme) => {
|
|
|
5352
6048
|
const isColorInherit = color === 'inherit';
|
|
5353
6049
|
return getCss({
|
|
5354
6050
|
'@global': {
|
|
5355
|
-
':host':
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
6051
|
+
':host': {
|
|
6052
|
+
display: 'inline-block',
|
|
6053
|
+
verticalAlign: 'top',
|
|
6054
|
+
...addImportantToEachRule({
|
|
6055
|
+
maxWidth: '100%',
|
|
6056
|
+
maxHeight: '100%',
|
|
6057
|
+
...(!isSizeInherit && {
|
|
6058
|
+
width: 'inherit',
|
|
6059
|
+
height: 'inherit',
|
|
6060
|
+
// TODO: we need a width map of all signatures to ensure same fluid behavior like implemented fro crest + wordmark
|
|
6061
|
+
maxHeight: `${modelSignatureHeight}px`,
|
|
6062
|
+
}),
|
|
6063
|
+
...hostHiddenStyles,
|
|
6064
|
+
}),
|
|
6065
|
+
},
|
|
6066
|
+
img: {
|
|
6067
|
+
display: 'block',
|
|
6068
|
+
maxWidth: '100%',
|
|
6069
|
+
maxHeight: '100%',
|
|
6070
|
+
pointerEvents: 'none',
|
|
6071
|
+
...(!isColorInherit && {
|
|
6072
|
+
filter: colorToFilterMap[theme][color],
|
|
6073
|
+
...(isHighContrastMode &&
|
|
6074
|
+
getSchemedHighContrastMediaQuery({
|
|
6075
|
+
filter: colorToFilterMap.light[color],
|
|
6076
|
+
}, {
|
|
6077
|
+
filter: colorToFilterMap.dark[color],
|
|
6078
|
+
})),
|
|
6079
|
+
}),
|
|
6080
|
+
...(isSizeInherit && { height: size }),
|
|
6081
|
+
},
|
|
5367
6082
|
},
|
|
5368
6083
|
});
|
|
5369
6084
|
};
|
|
@@ -5380,10 +6095,18 @@ const getComponentCss$v = (maxNumberOfPageLinks, theme) => {
|
|
|
5380
6095
|
const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
|
|
5381
6096
|
return getCss({
|
|
5382
6097
|
'@global': {
|
|
5383
|
-
':host':
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
}
|
|
6098
|
+
':host': {
|
|
6099
|
+
display: 'block',
|
|
6100
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
6101
|
+
},
|
|
6102
|
+
nav: {
|
|
6103
|
+
display: 'flex',
|
|
6104
|
+
justifyContent: 'center',
|
|
6105
|
+
userSelect: 'none',
|
|
6106
|
+
...buildResponsiveStyles(maxNumberOfPageLinks, (n) => ({
|
|
6107
|
+
counterReset: `size ${n}`,
|
|
6108
|
+
})),
|
|
6109
|
+
},
|
|
5387
6110
|
ul: {
|
|
5388
6111
|
display: 'flex',
|
|
5389
6112
|
gap: spacingStaticXSmall,
|
|
@@ -5404,13 +6127,53 @@ const getComponentCss$v = (maxNumberOfPageLinks, theme) => {
|
|
|
5404
6127
|
},
|
|
5405
6128
|
},
|
|
5406
6129
|
},
|
|
5407
|
-
span:
|
|
5408
|
-
|
|
5409
|
-
|
|
6130
|
+
span: {
|
|
6131
|
+
display: 'flex',
|
|
6132
|
+
justifyContent: 'center',
|
|
6133
|
+
alignItems: 'center',
|
|
6134
|
+
transition: ['color', 'border-color', 'background-color'].map(getTransition).join(),
|
|
6135
|
+
position: 'relative',
|
|
6136
|
+
width: buttonSize,
|
|
6137
|
+
height: buttonSize,
|
|
6138
|
+
boxSizing: 'border-box',
|
|
6139
|
+
...textSmallStyle,
|
|
6140
|
+
whiteSpace: 'nowrap',
|
|
6141
|
+
cursor: 'pointer',
|
|
6142
|
+
color: primaryColor,
|
|
6143
|
+
outline: 0,
|
|
6144
|
+
borderRadius: borderRadiusSmall,
|
|
6145
|
+
borderColor: 'transparent',
|
|
6146
|
+
...hoverMediaQuery({
|
|
6147
|
+
'&:not([aria-disabled]):not(.ellipsis):hover': {
|
|
6148
|
+
...frostedGlassStyle,
|
|
6149
|
+
background: hoverColor,
|
|
6150
|
+
},
|
|
6151
|
+
}),
|
|
6152
|
+
'&:not(.ellipsis):focus:focus-visible::before': {
|
|
6153
|
+
content: '""',
|
|
6154
|
+
position: 'absolute',
|
|
6155
|
+
...getInsetJssStyle(-4),
|
|
6156
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
6157
|
+
borderRadius: borderRadiusMedium,
|
|
6158
|
+
},
|
|
6159
|
+
'&[aria-current]': {
|
|
6160
|
+
...disabledCursorStyle,
|
|
6161
|
+
color: primaryColor,
|
|
6162
|
+
border: `${borderWidthBase} solid ${primaryColor}`,
|
|
6163
|
+
'&:not(.ellipsis):focus::before': getInsetJssStyle(-6),
|
|
6164
|
+
},
|
|
6165
|
+
'&[aria-disabled]': {
|
|
6166
|
+
...disabledCursorStyle,
|
|
6167
|
+
color: disabledColor,
|
|
6168
|
+
},
|
|
6169
|
+
},
|
|
5410
6170
|
},
|
|
5411
|
-
ellipsis:
|
|
6171
|
+
ellipsis: {
|
|
6172
|
+
...disabledCursorStyle,
|
|
6173
|
+
'&::after': {
|
|
5412
6174
|
content: '"…"',
|
|
5413
|
-
}
|
|
6175
|
+
},
|
|
6176
|
+
},
|
|
5414
6177
|
});
|
|
5415
6178
|
};
|
|
5416
6179
|
|
|
@@ -5484,16 +6247,52 @@ const getComponentCss$u = (direction, theme) => {
|
|
|
5484
6247
|
const { hoverColor, focusColor } = getThemedColors(theme);
|
|
5485
6248
|
return getCss({
|
|
5486
6249
|
'@global': {
|
|
5487
|
-
':host':
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
6250
|
+
':host': {
|
|
6251
|
+
...addImportantToEachRule({
|
|
6252
|
+
position: 'relative',
|
|
6253
|
+
display: 'inline-block',
|
|
6254
|
+
...hostHiddenStyles,
|
|
6255
|
+
}),
|
|
6256
|
+
verticalAlign: 'top',
|
|
6257
|
+
},
|
|
6258
|
+
p: {
|
|
6259
|
+
...textSmallStyle,
|
|
6260
|
+
margin: 0,
|
|
6261
|
+
},
|
|
6262
|
+
button: {
|
|
6263
|
+
display: 'block',
|
|
6264
|
+
position: 'relative',
|
|
6265
|
+
appearance: 'none',
|
|
6266
|
+
background: 'transparent',
|
|
6267
|
+
border: 0,
|
|
6268
|
+
padding: 0,
|
|
6269
|
+
outline: 0,
|
|
6270
|
+
cursor: 'pointer',
|
|
6271
|
+
...textSmallStyle,
|
|
6272
|
+
width: fontLineHeight,
|
|
6273
|
+
height: fontLineHeight,
|
|
6274
|
+
borderRadius: '50%',
|
|
6275
|
+
...hoverMediaQuery({
|
|
6276
|
+
transition: getTransition('background-color'),
|
|
6277
|
+
'&:hover': {
|
|
6278
|
+
...frostedGlassStyle,
|
|
6279
|
+
backgroundColor: hoverColor,
|
|
6280
|
+
},
|
|
6281
|
+
}),
|
|
6282
|
+
'&::before': {
|
|
6283
|
+
content: '""',
|
|
6284
|
+
position: 'absolute',
|
|
6285
|
+
...getInsetJssStyle(-2),
|
|
6286
|
+
border: `${borderWidthBase} solid transparent`,
|
|
6287
|
+
borderRadius: '50%',
|
|
6288
|
+
},
|
|
6289
|
+
'&:focus::before': {
|
|
5493
6290
|
borderColor: focusColor,
|
|
5494
|
-
},
|
|
6291
|
+
},
|
|
6292
|
+
'&:focus:not(:focus-visible)::before': {
|
|
5495
6293
|
borderColor: 'transparent',
|
|
5496
|
-
}
|
|
6294
|
+
},
|
|
6295
|
+
},
|
|
5497
6296
|
},
|
|
5498
6297
|
label: getHiddenTextJssStyle(),
|
|
5499
6298
|
icon: {
|
|
@@ -5512,11 +6311,31 @@ const getComponentCss$u = (direction, theme) => {
|
|
|
5512
6311
|
pointerEvents: 'none',
|
|
5513
6312
|
animation: '240ms $fadeIn ease forwards'
|
|
5514
6313
|
,
|
|
5515
|
-
'&::before':
|
|
6314
|
+
'&::before': {
|
|
6315
|
+
content: '""',
|
|
6316
|
+
position: 'absolute',
|
|
6317
|
+
borderStyle: 'solid',
|
|
6318
|
+
...directionArrowMap[direction],
|
|
6319
|
+
},
|
|
6320
|
+
},
|
|
6321
|
+
popover: {
|
|
6322
|
+
position: 'absolute',
|
|
6323
|
+
maxWidth: 'min(90vw, 27rem)',
|
|
6324
|
+
width: 'max-content',
|
|
6325
|
+
boxSizing: 'border-box',
|
|
6326
|
+
background: backgroundColorThemeLight,
|
|
6327
|
+
padding: '8px 16px',
|
|
6328
|
+
pointerEvents: 'auto',
|
|
6329
|
+
...directionPositionMap[direction],
|
|
6330
|
+
...textSmallStyle,
|
|
6331
|
+
listStyleType: 'none',
|
|
6332
|
+
color: primaryColorThemeLight,
|
|
6333
|
+
whiteSpace: 'inherit',
|
|
6334
|
+
borderRadius: borderRadiusSmall,
|
|
6335
|
+
...(isHighContrastMode && {
|
|
6336
|
+
outline: `1px solid ${canvasTextColor}`,
|
|
6337
|
+
}),
|
|
5516
6338
|
},
|
|
5517
|
-
popover: Object.assign(Object.assign(Object.assign(Object.assign({ position: 'absolute', maxWidth: 'min(90vw, 27rem)', width: 'max-content', boxSizing: 'border-box', background: backgroundColorThemeLight, padding: '8px 16px', pointerEvents: 'auto' }, directionPositionMap[direction]), textSmallStyle), { listStyleType: 'none', color: primaryColorThemeLight, whiteSpace: 'inherit', borderRadius: borderRadiusSmall }), (isHighContrastMode && {
|
|
5518
|
-
outline: `1px solid ${canvasTextColor}`,
|
|
5519
|
-
})),
|
|
5520
6339
|
'@keyframes fadeIn': {
|
|
5521
6340
|
from: {
|
|
5522
6341
|
opacity: 0,
|
|
@@ -5534,15 +6353,19 @@ const getComponentCss$t = (hideLabel, state, isDisabled, theme) => {
|
|
|
5534
6353
|
: getInvertedThemedColors(theme).primaryColor.replace(/#/g, '%23');
|
|
5535
6354
|
return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, false, theme), {
|
|
5536
6355
|
'@global': {
|
|
5537
|
-
'::slotted': addImportantToEachRule(
|
|
6356
|
+
'::slotted': addImportantToEachRule({
|
|
6357
|
+
'&(input)': {
|
|
5538
6358
|
borderRadius: '50%',
|
|
5539
|
-
},
|
|
6359
|
+
},
|
|
6360
|
+
'&(input:checked)': {
|
|
5540
6361
|
backgroundImage: getInlineSVGBackgroundImage(`<circle fill="${checkedIconColor}" cx="12" cy="12" r="6"/>`),
|
|
5541
|
-
} }, (!isDisabled && {
|
|
5542
|
-
'&(input:focus)::before': {
|
|
5543
|
-
borderRadius: '50%',
|
|
5544
6362
|
},
|
|
5545
|
-
|
|
6363
|
+
...(!isDisabled && {
|
|
6364
|
+
'&(input:focus)::before': {
|
|
6365
|
+
borderRadius: '50%',
|
|
6366
|
+
},
|
|
6367
|
+
}),
|
|
6368
|
+
}),
|
|
5546
6369
|
},
|
|
5547
6370
|
}));
|
|
5548
6371
|
};
|
|
@@ -5586,11 +6409,35 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
|
|
|
5586
6409
|
};
|
|
5587
6410
|
return getCss({
|
|
5588
6411
|
'@global': {
|
|
5589
|
-
':host': addImportantToEachRule(
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
})
|
|
6412
|
+
':host': addImportantToEachRule({
|
|
6413
|
+
display: 'block',
|
|
6414
|
+
height: 'inherit',
|
|
6415
|
+
...hostHiddenStyles,
|
|
6416
|
+
}),
|
|
6417
|
+
button: {
|
|
6418
|
+
display: 'flex',
|
|
6419
|
+
pointerEvents: 'auto',
|
|
6420
|
+
alignItems: 'center',
|
|
6421
|
+
justifyContent: 'center',
|
|
6422
|
+
...textSmallStyle,
|
|
6423
|
+
height: `calc(${fontLineHeight} + 4px)`,
|
|
6424
|
+
width: `calc(${fontLineHeight} + 4px)`,
|
|
6425
|
+
border: 0,
|
|
6426
|
+
outline: 0,
|
|
6427
|
+
cursor: 'pointer',
|
|
6428
|
+
background: backgroundColorMap[theme][gradientColor],
|
|
6429
|
+
borderRadius: borderRadiusSmall,
|
|
6430
|
+
...frostedGlassStyle,
|
|
6431
|
+
visibility: 'hidden',
|
|
6432
|
+
...(!isDarkTheme && dropShadowLowStyle),
|
|
6433
|
+
...hoverMediaQuery({
|
|
6434
|
+
transition: getTransition('background-color'),
|
|
6435
|
+
'&:hover': {
|
|
6436
|
+
...frostedGlassStyle,
|
|
6437
|
+
background: hoverColor,
|
|
6438
|
+
},
|
|
6439
|
+
}),
|
|
6440
|
+
},
|
|
5594
6441
|
},
|
|
5595
6442
|
root: {
|
|
5596
6443
|
display: 'grid',
|
|
@@ -5598,14 +6445,19 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
|
|
|
5598
6445
|
margin: '0 -4px',
|
|
5599
6446
|
height: 'inherit',
|
|
5600
6447
|
},
|
|
5601
|
-
'scroll-area':
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
6448
|
+
'scroll-area': {
|
|
6449
|
+
gridArea: '1 / 1 / 1 / -1',
|
|
6450
|
+
padding: '4px',
|
|
6451
|
+
overflow: 'auto hidden',
|
|
6452
|
+
...(!hasScrollbar && {
|
|
6453
|
+
// If scrollbar is disabled - hide scrollbar
|
|
6454
|
+
msOverflowStyle: 'none' /* IE and Edge */,
|
|
6455
|
+
scrollbarWidth: 'none' /* Firefox */,
|
|
6456
|
+
'&::-webkit-scrollbar': {
|
|
6457
|
+
display: 'none',
|
|
6458
|
+
},
|
|
6459
|
+
}),
|
|
6460
|
+
},
|
|
5609
6461
|
// Extra wrapper needed to compensate different offset parent calculation depending on browser.
|
|
5610
6462
|
// Needed for position of status bar.
|
|
5611
6463
|
'scroll-wrapper': {
|
|
@@ -5615,7 +6467,14 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
|
|
|
5615
6467
|
minWidth: '100%',
|
|
5616
6468
|
verticalAlign: 'top',
|
|
5617
6469
|
outline: 0,
|
|
5618
|
-
'&::before':
|
|
6470
|
+
'&::before': {
|
|
6471
|
+
content: '""',
|
|
6472
|
+
position: 'absolute',
|
|
6473
|
+
...getInsetJssStyle(-4),
|
|
6474
|
+
border: `${borderWidthBase} solid transparent`,
|
|
6475
|
+
borderRadius: borderRadiusSmall,
|
|
6476
|
+
pointerEvents: 'none', // Needed to enable clicks inside of slot
|
|
6477
|
+
},
|
|
5619
6478
|
'&:focus::before': {
|
|
5620
6479
|
borderColor: focusColor,
|
|
5621
6480
|
},
|
|
@@ -5636,12 +6495,36 @@ const getComponentCss$s = (gradientColor, isNextHidden, isPrevHidden, scrollIndi
|
|
|
5636
6495
|
right: 0,
|
|
5637
6496
|
},
|
|
5638
6497
|
},
|
|
5639
|
-
'action-prev':
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
}
|
|
6498
|
+
'action-prev': {
|
|
6499
|
+
...actionPrevNextStyles,
|
|
6500
|
+
marginLeft: '-1px',
|
|
6501
|
+
gridArea: '1 / 1 / 1 / 1',
|
|
6502
|
+
justifyContent: 'flex-start',
|
|
6503
|
+
background: `linear-gradient(to right, ${getGradient(theme, gradientColor)} 100%)`,
|
|
6504
|
+
visibility: isPrevHidden ? 'hidden' : 'visible',
|
|
6505
|
+
'& button': {
|
|
6506
|
+
marginLeft: '8px',
|
|
6507
|
+
// hide buttons on mobile (actually devices not supporting hover)
|
|
6508
|
+
...hoverMediaQuery({
|
|
6509
|
+
visibility: isPrevHidden ? 'hidden' : 'visible',
|
|
6510
|
+
}),
|
|
6511
|
+
},
|
|
6512
|
+
},
|
|
6513
|
+
'action-next': {
|
|
6514
|
+
...actionPrevNextStyles,
|
|
6515
|
+
marginRight: '-1px',
|
|
6516
|
+
gridArea: '1 / 3 / 1 / 3',
|
|
6517
|
+
justifyContent: 'flex-end',
|
|
6518
|
+
background: `linear-gradient(to left, ${getGradient(theme, gradientColor)} 100%)`,
|
|
6519
|
+
visibility: isNextHidden ? 'hidden' : 'visible',
|
|
6520
|
+
'& button': {
|
|
6521
|
+
marginRight: '8px',
|
|
6522
|
+
// hide buttons on mobile (actually devices not supporting hover)
|
|
6523
|
+
...hoverMediaQuery({
|
|
6524
|
+
visibility: isNextHidden ? 'hidden' : 'visible',
|
|
6525
|
+
}),
|
|
6526
|
+
},
|
|
6527
|
+
},
|
|
5645
6528
|
});
|
|
5646
6529
|
};
|
|
5647
6530
|
|
|
@@ -5658,35 +6541,77 @@ const getColors$2 = (isDisabled, isSelected, theme) => {
|
|
|
5658
6541
|
hoverBorderColor: primaryColor,
|
|
5659
6542
|
};
|
|
5660
6543
|
};
|
|
5661
|
-
const
|
|
6544
|
+
const getItemPadding = (hasIconAndSlottedContent) => hasIconAndSlottedContent ? `13px ${ITEM_PADDING} 13px 13px` : `13px ${ITEM_PADDING}`;
|
|
6545
|
+
const getComponentCss$r = (isDisabled, isSelected, hasIcon, hasSlottedContent, theme) => {
|
|
5662
6546
|
const { focusColor } = getThemedColors(theme);
|
|
5663
6547
|
const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$2(isDisabled, isSelected, theme);
|
|
5664
6548
|
return getCss({
|
|
5665
6549
|
'@global': {
|
|
5666
|
-
':host': addImportantToEachRule(
|
|
5667
|
-
|
|
6550
|
+
':host': addImportantToEachRule({
|
|
6551
|
+
display: 'block',
|
|
6552
|
+
outline: 0,
|
|
6553
|
+
...hostHiddenStyles,
|
|
6554
|
+
}),
|
|
6555
|
+
// All width relevant styling has to be kept in sync with the tempDiv of the p-segmented-control utils
|
|
6556
|
+
button: {
|
|
6557
|
+
display: 'block',
|
|
6558
|
+
height: '100%',
|
|
6559
|
+
width: '100%',
|
|
6560
|
+
padding: getItemPadding(hasIcon && hasSlottedContent),
|
|
6561
|
+
margin: 0,
|
|
6562
|
+
border: `${borderWidthBase} solid ${borderColor}`,
|
|
6563
|
+
borderRadius: borderRadiusSmall,
|
|
6564
|
+
outline: 0,
|
|
6565
|
+
background: 'transparent',
|
|
6566
|
+
color: buttonColor,
|
|
6567
|
+
...textSmallStyle,
|
|
6568
|
+
overflowWrap: 'normal',
|
|
6569
|
+
position: 'relative',
|
|
6570
|
+
'&::before': {
|
|
6571
|
+
content: '""',
|
|
6572
|
+
position: 'absolute',
|
|
6573
|
+
...getInsetJssStyle(-5),
|
|
6574
|
+
border: `${borderWidthBase} solid transparent`,
|
|
6575
|
+
borderRadius: '7px',
|
|
6576
|
+
},
|
|
6577
|
+
'&:focus::before': {
|
|
5668
6578
|
borderColor: focusColor,
|
|
5669
|
-
},
|
|
6579
|
+
},
|
|
6580
|
+
'&:focus:not(:focus-visible)::before': {
|
|
5670
6581
|
borderColor: 'transparent',
|
|
5671
|
-
}
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
6582
|
+
},
|
|
6583
|
+
...(isDisabled
|
|
6584
|
+
? {
|
|
6585
|
+
cursor: 'not-allowed',
|
|
6586
|
+
}
|
|
6587
|
+
: {
|
|
6588
|
+
cursor: 'pointer',
|
|
6589
|
+
...(!isSelected &&
|
|
6590
|
+
hoverMediaQuery({
|
|
6591
|
+
transition: getTransition('border-color'),
|
|
6592
|
+
'&:hover': {
|
|
6593
|
+
borderColor: hoverBorderColor,
|
|
6594
|
+
},
|
|
6595
|
+
})),
|
|
6596
|
+
}),
|
|
6597
|
+
},
|
|
5682
6598
|
// label
|
|
5683
|
-
span:
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
6599
|
+
span: {
|
|
6600
|
+
display: 'block',
|
|
6601
|
+
...textXSmallStyle,
|
|
6602
|
+
overflowWrap: 'normal',
|
|
6603
|
+
color: labelColor,
|
|
6604
|
+
},
|
|
5689
6605
|
},
|
|
6606
|
+
...(hasIcon && {
|
|
6607
|
+
icon: {
|
|
6608
|
+
height: ICON_SIZE,
|
|
6609
|
+
width: ICON_SIZE,
|
|
6610
|
+
...(hasSlottedContent && {
|
|
6611
|
+
marginRight: ICON_MARGIN,
|
|
6612
|
+
}),
|
|
6613
|
+
},
|
|
6614
|
+
}),
|
|
5690
6615
|
});
|
|
5691
6616
|
};
|
|
5692
6617
|
|
|
@@ -5696,7 +6621,13 @@ const getComponentCss$q = (maxWidth) => {
|
|
|
5696
6621
|
maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
|
|
5697
6622
|
return getCss({
|
|
5698
6623
|
'@global': {
|
|
5699
|
-
':host': addImportantToEachRule(
|
|
6624
|
+
':host': addImportantToEachRule({
|
|
6625
|
+
display: 'grid',
|
|
6626
|
+
gridAutoRows: '1fr',
|
|
6627
|
+
gridTemplateColumns: `repeat(auto-fit, ${maxWidth}px)`,
|
|
6628
|
+
gap: '6px',
|
|
6629
|
+
...hostHiddenStyles,
|
|
6630
|
+
}),
|
|
5700
6631
|
},
|
|
5701
6632
|
});
|
|
5702
6633
|
};
|
|
@@ -5704,71 +6635,131 @@ const getComponentCss$q = (maxWidth) => {
|
|
|
5704
6635
|
const getBaseChildStyles = (child, state, theme, additionalDefaultJssStyle) => {
|
|
5705
6636
|
const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
|
|
5706
6637
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
5707
|
-
return
|
|
6638
|
+
return {
|
|
6639
|
+
[`::slotted(${child})`]: {
|
|
6640
|
+
display: 'block',
|
|
6641
|
+
width: '100%',
|
|
6642
|
+
height: child !== 'textarea'
|
|
5708
6643
|
? `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)` // we need 10px additionally so input height becomes 54px
|
|
5709
|
-
: 'auto',
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
6644
|
+
: 'auto',
|
|
6645
|
+
margin: 0,
|
|
6646
|
+
outline: 0,
|
|
6647
|
+
WebkitAppearance: 'none',
|
|
6648
|
+
appearance: 'none',
|
|
6649
|
+
boxSizing: 'border-box',
|
|
6650
|
+
border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`,
|
|
6651
|
+
borderRadius: borderRadiusSmall,
|
|
6652
|
+
background: 'transparent',
|
|
6653
|
+
font: textSmallStyle.font.replace('ex', 'ex + 6px'),
|
|
6654
|
+
textIndent: 0,
|
|
6655
|
+
color: primaryColor,
|
|
6656
|
+
transition: ['color', 'border-color', 'background-color'].map(getTransition).join(),
|
|
6657
|
+
...additionalDefaultJssStyle,
|
|
5713
6658
|
},
|
|
5714
|
-
|
|
6659
|
+
...hoverMediaQuery({
|
|
6660
|
+
// with the media query the selector has higher priority and overrides disabled styles
|
|
6661
|
+
[`::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)`]: {
|
|
6662
|
+
borderColor: formStateHoverColor || primaryColor,
|
|
6663
|
+
},
|
|
6664
|
+
}),
|
|
6665
|
+
[`::slotted(${child}:focus)`]: {
|
|
5715
6666
|
borderColor: primaryColor,
|
|
5716
|
-
},
|
|
6667
|
+
},
|
|
6668
|
+
[`::slotted(${child}:disabled)`]: {
|
|
5717
6669
|
cursor: 'not-allowed',
|
|
5718
6670
|
color: disabledColor,
|
|
5719
6671
|
borderColor: disabledColor,
|
|
5720
6672
|
WebkitTextFillColor: disabledColor,
|
|
5721
|
-
} }), (child !== 'select' && {
|
|
5722
|
-
[`::slotted(${child}[readonly])`]: {
|
|
5723
|
-
borderColor: contrastLowColor,
|
|
5724
|
-
background: contrastLowColor,
|
|
5725
6673
|
},
|
|
5726
|
-
|
|
6674
|
+
...(child !== 'select' && {
|
|
6675
|
+
[`::slotted(${child}[readonly])`]: {
|
|
6676
|
+
borderColor: contrastLowColor,
|
|
6677
|
+
background: contrastLowColor,
|
|
6678
|
+
},
|
|
6679
|
+
}),
|
|
6680
|
+
};
|
|
5727
6681
|
};
|
|
5728
6682
|
const getLabelStyles = (child, isDisabled, hideLabel, state, theme, counterOrUnitOrIconStyles) => {
|
|
5729
6683
|
const { primaryColor, disabledColor, contrastHighColor } = getThemedColors(theme);
|
|
5730
6684
|
const { formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
5731
6685
|
const counterOrUnitOrIconStylesKey = counterOrUnitOrIconStyles && Object.keys(counterOrUnitOrIconStyles)[0];
|
|
5732
|
-
return
|
|
6686
|
+
return {
|
|
6687
|
+
label: {
|
|
5733
6688
|
display: 'flex',
|
|
5734
6689
|
flexDirection: 'column',
|
|
5735
6690
|
gap: spacingStaticXSmall,
|
|
5736
6691
|
position: 'relative',
|
|
5737
|
-
'&__text':
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
}
|
|
6692
|
+
'&__text': {
|
|
6693
|
+
display: 'block',
|
|
6694
|
+
...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { width: 'fit-content' })),
|
|
6695
|
+
...textSmallStyle,
|
|
6696
|
+
color: isDisabled ? disabledColor : primaryColor,
|
|
6697
|
+
transition: getTransition('color'),
|
|
6698
|
+
'&+&': {
|
|
6699
|
+
marginTop: `-${spacingStaticXSmall}`,
|
|
6700
|
+
fontSize: fontSizeTextXSmall,
|
|
6701
|
+
...(!isDisabled && {
|
|
6702
|
+
color: contrastHighColor,
|
|
6703
|
+
}),
|
|
5745
6704
|
},
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
6705
|
+
...hoverMediaQuery({
|
|
6706
|
+
'&:hover': {
|
|
6707
|
+
[`&~::slotted(${child}:not(:disabled):not(:focus):not([readonly]))` +
|
|
6708
|
+
(formStateHoverColor ? `,::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover)` : '')]: {
|
|
6709
|
+
borderColor: addImportantToRule(formStateHoverColor || primaryColor),
|
|
6710
|
+
},
|
|
6711
|
+
},
|
|
6712
|
+
}),
|
|
6713
|
+
},
|
|
6714
|
+
},
|
|
6715
|
+
...(counterOrUnitOrIconStyles && {
|
|
6716
|
+
[counterOrUnitOrIconStylesKey]: {
|
|
6717
|
+
...counterOrUnitOrIconStyles[counterOrUnitOrIconStylesKey],
|
|
6718
|
+
pointerEvents: 'none',
|
|
6719
|
+
...(isDisabled && {
|
|
6720
|
+
color: disabledColor,
|
|
6721
|
+
cursor: 'not-allowed',
|
|
6722
|
+
}),
|
|
6723
|
+
},
|
|
6724
|
+
}),
|
|
6725
|
+
};
|
|
5753
6726
|
};
|
|
5754
6727
|
|
|
5755
6728
|
const OPTION_HEIGHT = 40; // optgroups are higher and ignored
|
|
5756
6729
|
const getComponentCss$p = (isDisabled, hasCustomDropdown, hideLabel, state, theme) => {
|
|
5757
|
-
return getCss(
|
|
6730
|
+
return getCss({
|
|
6731
|
+
'@global': addImportantToEachRule({
|
|
6732
|
+
':host': {
|
|
6733
|
+
display: 'block',
|
|
6734
|
+
...hostHiddenStyles,
|
|
6735
|
+
},
|
|
6736
|
+
...getBaseChildStyles('select', state, theme, {
|
|
6737
|
+
position: 'static',
|
|
6738
|
+
zIndex: 0,
|
|
6739
|
+
cursor: 'pointer',
|
|
6740
|
+
padding: `8px calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2) 8px ${spacingStaticMedium}`,
|
|
6741
|
+
...(hasCustomDropdown && !isDisabled && { borderColor: 'transparent' }),
|
|
6742
|
+
}),
|
|
6743
|
+
}),
|
|
6744
|
+
root: {
|
|
5758
6745
|
display: 'block',
|
|
5759
6746
|
position: 'relative',
|
|
5760
|
-
} }, getLabelStyles('select', isDisabled, hideLabel, state, theme, {
|
|
5761
|
-
icon: {
|
|
5762
|
-
position: 'absolute',
|
|
5763
|
-
bottom: '13px',
|
|
5764
|
-
right: '15px',
|
|
5765
|
-
transform: 'rotate3d(0,0,1,0.0001deg)',
|
|
5766
|
-
transition: getTransition('transform'),
|
|
5767
|
-
'&--open': {
|
|
5768
|
-
transform: 'rotate3d(0,0,1,180deg)',
|
|
5769
|
-
},
|
|
5770
6747
|
},
|
|
5771
|
-
|
|
6748
|
+
...getLabelStyles('select', isDisabled, hideLabel, state, theme, {
|
|
6749
|
+
icon: {
|
|
6750
|
+
position: 'absolute',
|
|
6751
|
+
bottom: '13px',
|
|
6752
|
+
right: '15px',
|
|
6753
|
+
transform: 'rotate3d(0,0,1,0.0001deg)',
|
|
6754
|
+
transition: getTransition('transform'),
|
|
6755
|
+
'&--open': {
|
|
6756
|
+
transform: 'rotate3d(0,0,1,180deg)',
|
|
6757
|
+
},
|
|
6758
|
+
},
|
|
6759
|
+
}),
|
|
6760
|
+
...getFunctionalComponentRequiredStyles(),
|
|
6761
|
+
...getFunctionalComponentStateMessageStyles(theme, state),
|
|
6762
|
+
});
|
|
5772
6763
|
};
|
|
5773
6764
|
|
|
5774
6765
|
const dropdownPositionVar = '--p-internal-dropdown-position';
|
|
@@ -5778,19 +6769,36 @@ const getButtonStyles = (direction, isOpen, state, theme) => {
|
|
|
5778
6769
|
const isDirectionDown = direction === 'down';
|
|
5779
6770
|
return {
|
|
5780
6771
|
'@global': {
|
|
5781
|
-
button:
|
|
6772
|
+
button: {
|
|
6773
|
+
position: 'absolute',
|
|
6774
|
+
top: 0,
|
|
6775
|
+
height: `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`,
|
|
6776
|
+
width: '100%',
|
|
6777
|
+
font: textSmallStyle.font.replace('ex', 'ex + 6px'),
|
|
6778
|
+
padding: 0,
|
|
6779
|
+
background: 'transparent',
|
|
6780
|
+
border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`,
|
|
6781
|
+
borderRadius: borderRadiusSmall,
|
|
6782
|
+
outline: '0',
|
|
6783
|
+
cursor: 'pointer',
|
|
6784
|
+
transition: getTransition('border-color'),
|
|
6785
|
+
'&:focus, &:focus ~ ul': {
|
|
5782
6786
|
borderColor: primaryColor,
|
|
5783
|
-
} }, hoverMediaQuery({
|
|
5784
|
-
'&:not(:disabled):not(:focus):hover': {
|
|
5785
|
-
borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
|
|
5786
6787
|
},
|
|
5787
|
-
|
|
6788
|
+
...hoverMediaQuery({
|
|
6789
|
+
'&:not(:disabled):not(:focus):hover': {
|
|
6790
|
+
borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
|
|
6791
|
+
},
|
|
6792
|
+
}),
|
|
6793
|
+
'&:disabled': {
|
|
5788
6794
|
cursor: 'not-allowed',
|
|
5789
6795
|
borderColor: disabledColor,
|
|
5790
|
-
}
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
6796
|
+
},
|
|
6797
|
+
...(isOpen && {
|
|
6798
|
+
[isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
|
|
6799
|
+
[isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
|
|
6800
|
+
}),
|
|
6801
|
+
},
|
|
5794
6802
|
},
|
|
5795
6803
|
};
|
|
5796
6804
|
};
|
|
@@ -5804,28 +6812,63 @@ const getFilterStyles = (direction, isOpen, state, disabled, theme) => {
|
|
|
5804
6812
|
};
|
|
5805
6813
|
return {
|
|
5806
6814
|
'@global': {
|
|
5807
|
-
input:
|
|
6815
|
+
input: {
|
|
6816
|
+
display: 'block',
|
|
6817
|
+
position: 'absolute',
|
|
6818
|
+
zIndex: 1,
|
|
6819
|
+
bottom: '2px',
|
|
6820
|
+
left: '2px',
|
|
6821
|
+
width: `calc(100% - (${fontLineHeight} + 6px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2))`,
|
|
6822
|
+
height: `calc(${fontLineHeight} + 6px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`,
|
|
6823
|
+
font: textSmallStyle.font.replace('ex', 'ex + 6px'),
|
|
6824
|
+
padding: `13px ${spacingStaticMedium}`,
|
|
6825
|
+
outline: '0',
|
|
6826
|
+
appearance: 'none',
|
|
6827
|
+
boxSizing: 'border-box',
|
|
6828
|
+
border: '0',
|
|
6829
|
+
borderRadius: borderRadiusSmall,
|
|
6830
|
+
opacity: 0,
|
|
6831
|
+
...textSmallStyle,
|
|
6832
|
+
textIndent: 0,
|
|
6833
|
+
cursor: disabled ? 'not-allowed' : 'text',
|
|
6834
|
+
color: primaryColor,
|
|
6835
|
+
background: backgroundColor,
|
|
6836
|
+
'&::placeholder': placeHolderJssStyle,
|
|
6837
|
+
'&::-webkit-input-placeholder': placeHolderJssStyle,
|
|
6838
|
+
'&::-moz-placeholder': placeHolderJssStyle,
|
|
6839
|
+
'&:not(:disabled):focus': {
|
|
5808
6840
|
opacity: 1,
|
|
5809
6841
|
'&+span, &~ ul': {
|
|
5810
6842
|
borderColor: primaryColor,
|
|
5811
6843
|
},
|
|
5812
|
-
}
|
|
5813
|
-
|
|
5814
|
-
'
|
|
5815
|
-
|
|
5816
|
-
},
|
|
5817
|
-
'&:hover': {
|
|
5818
|
-
'&+span, &~ul': {
|
|
6844
|
+
},
|
|
6845
|
+
...hoverMediaQuery({
|
|
6846
|
+
'&:not(:disabled)': {
|
|
6847
|
+
'&+span:hover': {
|
|
5819
6848
|
borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
|
|
5820
6849
|
},
|
|
6850
|
+
'&:hover': {
|
|
6851
|
+
'&+span, &~ul': {
|
|
6852
|
+
borderColor: isOpen ? primaryColor : formStateHoverColor || primaryColor,
|
|
6853
|
+
},
|
|
6854
|
+
},
|
|
5821
6855
|
},
|
|
5822
|
-
},
|
|
5823
|
-
|
|
6856
|
+
}),
|
|
6857
|
+
'&+span': {
|
|
5824
6858
|
// for focus outline and clicking arrow since input ends left of the icon
|
|
5825
|
-
position: 'absolute'
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
6859
|
+
position: 'absolute',
|
|
6860
|
+
...getInsetJssStyle(),
|
|
6861
|
+
transition: getTransition('border-color'),
|
|
6862
|
+
pointerEvents: 'all',
|
|
6863
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
6864
|
+
border: `${borderWidthBase} solid ${isOpen ? primaryColor : formStateColor || contrastMediumColor}`,
|
|
6865
|
+
borderRadius: borderRadiusSmall,
|
|
6866
|
+
...(isOpen && {
|
|
6867
|
+
[isDirectionDown ? 'borderBottomLeftRadius' : 'borderTopLeftRadius']: 0,
|
|
6868
|
+
[isDirectionDown ? 'borderBottomRightRadius' : 'borderTopRightRadius']: 0,
|
|
6869
|
+
}),
|
|
6870
|
+
},
|
|
6871
|
+
},
|
|
5829
6872
|
},
|
|
5830
6873
|
};
|
|
5831
6874
|
};
|
|
@@ -5835,29 +6878,74 @@ const getListStyles = (direction, theme) => {
|
|
|
5835
6878
|
const { highlightColor } = getHighContrastColors();
|
|
5836
6879
|
return {
|
|
5837
6880
|
'@global': {
|
|
5838
|
-
ul:
|
|
5839
|
-
|
|
5840
|
-
:
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
6881
|
+
ul: {
|
|
6882
|
+
display: 'flex',
|
|
6883
|
+
flexDirection: 'column',
|
|
6884
|
+
gap: spacingStaticSmall,
|
|
6885
|
+
position: `var(${dropdownPositionVar})`,
|
|
6886
|
+
padding: '6px',
|
|
6887
|
+
margin: 0,
|
|
6888
|
+
background: backgroundColor,
|
|
6889
|
+
...textSmallStyle,
|
|
6890
|
+
zIndex: 10,
|
|
6891
|
+
left: 0,
|
|
6892
|
+
right: 0,
|
|
6893
|
+
[isDirectionDown ? 'top' : 'bottom']: 'calc(100% - 2px)',
|
|
6894
|
+
boxSizing: 'border-box',
|
|
6895
|
+
maxHeight: `${8.5 * (OPTION_HEIGHT + 8) + 6 + 2}px`,
|
|
6896
|
+
overflowY: 'auto',
|
|
6897
|
+
WebkitOverflowScrolling: 'touch',
|
|
6898
|
+
scrollBehavior: 'smooth',
|
|
6899
|
+
border: `2px solid ${primaryColor}`,
|
|
6900
|
+
[isDirectionDown ? 'borderTop' : 'borderBottom']: addImportantToRule(`1px solid ${contrastMediumColor}`),
|
|
6901
|
+
...(isDirectionDown
|
|
6902
|
+
? ['borderBottomLeftRadius', 'borderBottomRightRadius']
|
|
6903
|
+
: ['borderTopLeftRadius', 'borderTopRightRadius']).reduce((result, curr) => ({ ...result, [curr]: borderRadiusSmall }), {}),
|
|
6904
|
+
scrollbarWidth: 'thin',
|
|
6905
|
+
scrollbarColor: 'auto',
|
|
6906
|
+
transition: getTransition('border-color'),
|
|
6907
|
+
transform: 'translate3d(0,0,0)', // fix iOS bug if less than 5 items are displayed
|
|
5848
6908
|
},
|
|
5849
|
-
}
|
|
6909
|
+
},
|
|
6910
|
+
option: {
|
|
6911
|
+
display: 'flex',
|
|
6912
|
+
justifyContent: 'space-between',
|
|
6913
|
+
gap: '12px',
|
|
6914
|
+
padding: `${spacingStaticSmall} 12px`,
|
|
6915
|
+
flex: `1 0 calc(${fontLineHeight} + ${spacingStaticSmall} * 2)`,
|
|
6916
|
+
color: contrastHighColor,
|
|
6917
|
+
cursor: 'pointer',
|
|
6918
|
+
textAlign: 'left',
|
|
6919
|
+
wordBreak: 'break-word',
|
|
6920
|
+
boxSizing: 'border-box',
|
|
6921
|
+
borderRadius: borderRadiusSmall,
|
|
6922
|
+
transition: ['background-color', 'color'].map(getTransition).join(),
|
|
6923
|
+
'&[role=status]': {
|
|
6924
|
+
cursor: 'not-allowed',
|
|
6925
|
+
},
|
|
6926
|
+
'&__sr': getHiddenTextJssStyle(),
|
|
6927
|
+
...hoverMediaQuery({
|
|
6928
|
+
'&:not([aria-disabled]):not([role=status]):hover': {
|
|
6929
|
+
color: isHighContrastMode ? highlightColor : primaryColor,
|
|
6930
|
+
background: backgroundSurfaceColor,
|
|
6931
|
+
},
|
|
6932
|
+
}),
|
|
6933
|
+
'&--highlighted, &--selected': {
|
|
5850
6934
|
color: isHighContrastMode ? highlightColor : primaryColor,
|
|
5851
6935
|
background: backgroundSurfaceColor,
|
|
5852
|
-
},
|
|
6936
|
+
},
|
|
6937
|
+
'&--selected': {
|
|
5853
6938
|
cursor: 'default',
|
|
5854
6939
|
pointerEvents: 'none',
|
|
5855
|
-
},
|
|
6940
|
+
},
|
|
6941
|
+
'&--disabled': {
|
|
5856
6942
|
cursor: 'not-allowed',
|
|
5857
6943
|
color: disabledColor,
|
|
5858
|
-
},
|
|
6944
|
+
},
|
|
6945
|
+
'&--hidden': {
|
|
5859
6946
|
display: 'none',
|
|
5860
|
-
}
|
|
6947
|
+
},
|
|
6948
|
+
},
|
|
5861
6949
|
optgroup: {
|
|
5862
6950
|
display: 'block',
|
|
5863
6951
|
padding: '3px 14px',
|
|
@@ -5878,13 +6966,24 @@ const getComponentCss$o = (direction, isOpen, state, disabled, filter, theme) =>
|
|
|
5878
6966
|
// merge because of global styles
|
|
5879
6967
|
mergeDeep({
|
|
5880
6968
|
'@global': {
|
|
5881
|
-
':host':
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
})
|
|
6969
|
+
':host': {
|
|
6970
|
+
[dropdownPositionVar]: 'absolute',
|
|
6971
|
+
display: 'block',
|
|
6972
|
+
position: `var(${dropdownPositionVar})`,
|
|
6973
|
+
font: textSmallStyle.font.replace('ex', 'ex + 6px'),
|
|
6974
|
+
marginTop: `calc(-1 * (${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2))`,
|
|
6975
|
+
paddingTop: `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)`,
|
|
6976
|
+
left: 0,
|
|
6977
|
+
right: 0,
|
|
6978
|
+
color: disabled ? disabledColor : formStateColor || contrastMediumColor,
|
|
6979
|
+
...(!disabled &&
|
|
6980
|
+
!isHighContrastMode &&
|
|
6981
|
+
hoverMediaQuery({
|
|
6982
|
+
'&(:hover)': {
|
|
6983
|
+
color: formStateHoverColor || primaryColor,
|
|
6984
|
+
},
|
|
6985
|
+
})),
|
|
6986
|
+
},
|
|
5888
6987
|
},
|
|
5889
6988
|
'sr-text': {
|
|
5890
6989
|
display: 'none',
|
|
@@ -5910,7 +7009,11 @@ const getComponentCss$n = (size, theme) => {
|
|
|
5910
7009
|
const { canvasColor, canvasTextColor } = getHighContrastColors();
|
|
5911
7010
|
return getCss({
|
|
5912
7011
|
'@global': {
|
|
5913
|
-
':host': addImportantToEachRule(
|
|
7012
|
+
':host': addImportantToEachRule({
|
|
7013
|
+
display: 'inline-flex',
|
|
7014
|
+
verticalAlign: 'top',
|
|
7015
|
+
...hostHiddenStyles,
|
|
7016
|
+
}),
|
|
5914
7017
|
svg: {
|
|
5915
7018
|
display: 'block',
|
|
5916
7019
|
position: 'relative',
|
|
@@ -5955,14 +7058,21 @@ const getComponentCss$n = (size, theme) => {
|
|
|
5955
7058
|
},
|
|
5956
7059
|
},
|
|
5957
7060
|
},
|
|
5958
|
-
root:
|
|
7061
|
+
root: {
|
|
7062
|
+
display: 'block',
|
|
7063
|
+
...buildResponsiveStyles(size, (s) => sizeMap$1[s]),
|
|
7064
|
+
margin: 0,
|
|
7065
|
+
padding: 0,
|
|
7066
|
+
boxSizing: 'border-box',
|
|
7067
|
+
strokeWidth: 1.5,
|
|
7068
|
+
},
|
|
5959
7069
|
'sr-only': getHiddenTextJssStyle(),
|
|
5960
7070
|
});
|
|
5961
7071
|
};
|
|
5962
7072
|
|
|
5963
7073
|
const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
|
|
5964
7074
|
// # of the hexcolor starts a fragment identifier in URLs, so we have to replace it with the escaped value of # = %23
|
|
5965
|
-
numberedCircleColors = Object.entries(numberedCircleColors).reduce((result, [key, value]) => (
|
|
7075
|
+
numberedCircleColors = Object.entries(numberedCircleColors).reduce((result, [key, value]) => ({ ...result, [key]: value.replace(/#/g, '%23') }), {});
|
|
5966
7076
|
const { disabledColor, invertedBaseColor, primaryColor } = numberedCircleColors;
|
|
5967
7077
|
const fillColor = isStateCurrent ? invertedBaseColor : disabledColor;
|
|
5968
7078
|
const svgCirclePath = `<circle fill="${isStateCurrent ? primaryColor : 'none'}"${isStateCurrent ? '' : ` stroke="${fillColor}"`} stroke-width="1px" cx="12" cy="12" r="9"/>`;
|
|
@@ -5987,47 +7097,98 @@ const getComponentCss$m = (state, disabled, theme) => {
|
|
|
5987
7097
|
const isStateCurrent = state === 'current';
|
|
5988
7098
|
const isStateCurrentOrUndefined = !state || isStateCurrent;
|
|
5989
7099
|
const isDisabled = !state || disabled;
|
|
5990
|
-
return getCss(
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
7100
|
+
return getCss({
|
|
7101
|
+
'@global': {
|
|
7102
|
+
':host': {
|
|
7103
|
+
...(isStateCurrentOrUndefined &&
|
|
7104
|
+
Array.from(Array(9)).reduce((result, _, i) => ({
|
|
7105
|
+
...result,
|
|
7106
|
+
[`&(:nth-of-type(${i + 1})) $button::before`]: {
|
|
7107
|
+
backgroundImage: getInlineSVGBackgroundImage(getSVGPath(i, {
|
|
7108
|
+
primaryColor,
|
|
7109
|
+
invertedBaseColor: getInvertedThemedColors(theme).primaryColor,
|
|
7110
|
+
disabledColor,
|
|
7111
|
+
}, isStateCurrent)),
|
|
7112
|
+
},
|
|
7113
|
+
}), {})),
|
|
7114
|
+
...addImportantToEachRule({
|
|
7115
|
+
fontSize: 'inherit',
|
|
7116
|
+
...hostHiddenStyles,
|
|
7117
|
+
'&(:not(:last-of-type))': {
|
|
7118
|
+
margin: `0 ${spacingFluidXSmall} 0 0`,
|
|
7119
|
+
},
|
|
7120
|
+
}),
|
|
7121
|
+
},
|
|
7122
|
+
button: {
|
|
7123
|
+
display: 'flex',
|
|
7124
|
+
position: 'relative',
|
|
7125
|
+
gap: '3px',
|
|
7126
|
+
color: isDisabled ? disabledColor : primaryColor,
|
|
7127
|
+
padding: '4px 10px 4px 6px',
|
|
7128
|
+
background: 0,
|
|
7129
|
+
border: 0,
|
|
7130
|
+
outline: 0,
|
|
7131
|
+
...textSmallStyle,
|
|
7132
|
+
fontSize: 'inherit',
|
|
7133
|
+
width: 'max-content',
|
|
7134
|
+
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
7135
|
+
borderRadius: borderRadiusSmall,
|
|
7136
|
+
...(isStateCurrent && {
|
|
7137
|
+
...frostedGlassStyle,
|
|
7138
|
+
background: hoverColor,
|
|
7139
|
+
}),
|
|
7140
|
+
...(!isDisabled &&
|
|
7141
|
+
hoverMediaQuery({
|
|
7142
|
+
transition: getTransition('background-color'),
|
|
7143
|
+
'&:hover': {
|
|
7144
|
+
...frostedGlassStyle,
|
|
7145
|
+
background: hoverColor,
|
|
7146
|
+
},
|
|
7147
|
+
})),
|
|
7148
|
+
...(isStateCurrentOrUndefined && {
|
|
7149
|
+
// counter
|
|
7150
|
+
// Pseudo element is needed to center the counter to the text, as it is not working optimal directly on the button
|
|
7151
|
+
'&::before': {
|
|
7152
|
+
content: '""',
|
|
7153
|
+
height: fontLineHeight,
|
|
7154
|
+
width: fontLineHeight,
|
|
7155
|
+
},
|
|
7156
|
+
}),
|
|
7157
|
+
'&:focus::after': {
|
|
6009
7158
|
content: '""',
|
|
6010
|
-
|
|
6011
|
-
|
|
7159
|
+
position: 'absolute',
|
|
7160
|
+
...getInsetJssStyle(),
|
|
7161
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
7162
|
+
borderRadius: borderRadiusSmall,
|
|
6012
7163
|
},
|
|
6013
|
-
|
|
7164
|
+
'&:focus:not(:focus-visible)::after': {
|
|
6014
7165
|
borderColor: 'transparent',
|
|
6015
|
-
}
|
|
6016
|
-
|
|
6017
|
-
// complete / warning icons via icon component
|
|
6018
|
-
icon: {
|
|
6019
|
-
height: fontLineHeight,
|
|
6020
|
-
width: fontLineHeight,
|
|
7166
|
+
},
|
|
7167
|
+
},
|
|
6021
7168
|
},
|
|
6022
|
-
|
|
7169
|
+
...(!isStateCurrentOrUndefined && {
|
|
7170
|
+
// complete / warning icons via icon component
|
|
7171
|
+
icon: {
|
|
7172
|
+
height: fontLineHeight,
|
|
7173
|
+
width: fontLineHeight,
|
|
7174
|
+
},
|
|
7175
|
+
}),
|
|
7176
|
+
'sr-only': getHiddenTextJssStyle(),
|
|
7177
|
+
});
|
|
6023
7178
|
};
|
|
6024
7179
|
|
|
6025
7180
|
const getComponentCss$l = (size) => {
|
|
6026
7181
|
return getCss({
|
|
6027
7182
|
'@global': {
|
|
6028
|
-
':host':
|
|
7183
|
+
':host': {
|
|
7184
|
+
display: 'block',
|
|
7185
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
7186
|
+
},
|
|
7187
|
+
},
|
|
7188
|
+
scroller: {
|
|
7189
|
+
...textSmallStyle,
|
|
7190
|
+
...buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText[s] })),
|
|
6029
7191
|
},
|
|
6030
|
-
scroller: Object.assign(Object.assign({}, textSmallStyle), buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText[s] }))),
|
|
6031
7192
|
});
|
|
6032
7193
|
};
|
|
6033
7194
|
|
|
@@ -6062,22 +7223,55 @@ const getColors$1 = (checked, disabled, loading, theme) => {
|
|
|
6062
7223
|
const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, loading, theme) => {
|
|
6063
7224
|
const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, buttonBackgroundColorHover, toggleBackgroundColor, toggleBackgroundColorHover, textColor, } = getColors$1(checked, disabled, loading, theme);
|
|
6064
7225
|
const { focusColor } = getThemedColors(theme);
|
|
6065
|
-
return getCss(
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
7226
|
+
return getCss({
|
|
7227
|
+
'@global': {
|
|
7228
|
+
':host': addImportantToEachRule({
|
|
7229
|
+
outline: 0,
|
|
7230
|
+
...hostHiddenStyles,
|
|
7231
|
+
...buildResponsiveStyles(stretch, (stretchValue) => ({
|
|
7232
|
+
display: stretchValue ? 'block' : 'inline-block',
|
|
7233
|
+
width: stretchValue ? '100%' : 'auto',
|
|
7234
|
+
...(!stretchValue && { verticalAlign: 'top' }),
|
|
7235
|
+
})),
|
|
7236
|
+
}),
|
|
7237
|
+
},
|
|
7238
|
+
root: {
|
|
7239
|
+
display: 'flex',
|
|
7240
|
+
alignItems: 'flex-start',
|
|
7241
|
+
gap: spacingStaticSmall,
|
|
7242
|
+
width: '100%',
|
|
7243
|
+
padding: 0,
|
|
7244
|
+
outline: 0,
|
|
7245
|
+
border: 0,
|
|
7246
|
+
textAlign: 'left',
|
|
7247
|
+
background: 'transparent',
|
|
7248
|
+
appearance: 'none',
|
|
7249
|
+
cursor: isDisabledOrLoading(disabled, loading) ? 'auto' : 'pointer',
|
|
7250
|
+
...buildResponsiveStyles(stretch, (stretchValue) => ({
|
|
7251
|
+
justifyContent: stretchValue ? 'space-between' : 'flex-start',
|
|
7252
|
+
})),
|
|
7253
|
+
...(!isDisabledOrLoading(disabled, loading) &&
|
|
7254
|
+
hoverMediaQuery({
|
|
7255
|
+
'&:hover .switch': {
|
|
7256
|
+
borderColor: buttonBorderColorHover,
|
|
7257
|
+
backgroundColor: buttonBackgroundColorHover,
|
|
7258
|
+
'& .toggle': {
|
|
7259
|
+
backgroundColor: toggleBackgroundColorHover,
|
|
7260
|
+
},
|
|
6076
7261
|
},
|
|
6077
|
-
},
|
|
6078
|
-
|
|
7262
|
+
})),
|
|
7263
|
+
'&:focus .switch::before': {
|
|
7264
|
+
content: '""',
|
|
7265
|
+
position: 'absolute',
|
|
7266
|
+
...getInsetJssStyle(-6),
|
|
7267
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
7268
|
+
borderRadius: '18px',
|
|
7269
|
+
},
|
|
7270
|
+
'&:not(:focus-visible) .switch::before': {
|
|
6079
7271
|
borderColor: 'transparent',
|
|
6080
|
-
}
|
|
7272
|
+
},
|
|
7273
|
+
},
|
|
7274
|
+
switch: {
|
|
6081
7275
|
position: 'relative',
|
|
6082
7276
|
width: '48px',
|
|
6083
7277
|
height: '28px',
|
|
@@ -6088,7 +7282,8 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
|
|
|
6088
7282
|
backgroundColor: buttonBackgroundColor,
|
|
6089
7283
|
cursor: isDisabledOrLoading(disabled, loading) ? 'not-allowed' : 'pointer',
|
|
6090
7284
|
transition: `${getTransition('background-color')},${getTransition('border-color')},${getTransition('color')}`,
|
|
6091
|
-
},
|
|
7285
|
+
},
|
|
7286
|
+
toggle: {
|
|
6092
7287
|
position: 'absolute',
|
|
6093
7288
|
top: '2px',
|
|
6094
7289
|
left: '2px',
|
|
@@ -6099,23 +7294,36 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
|
|
|
6099
7294
|
backgroundColor: toggleBackgroundColor,
|
|
6100
7295
|
transform: `translate3d(${checked ? '20px' : '0'}, 0, 0)`,
|
|
6101
7296
|
transition: `${getTransition('background-color')},${getTransition('transform')}`,
|
|
6102
|
-
} }, (loading && {
|
|
6103
|
-
spinner: {
|
|
6104
|
-
position: 'absolute',
|
|
6105
|
-
top: '-4px',
|
|
6106
|
-
left: '-4px',
|
|
6107
|
-
width: '28px',
|
|
6108
|
-
height: '28px',
|
|
6109
7297
|
},
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
7298
|
+
...(loading && {
|
|
7299
|
+
spinner: {
|
|
7300
|
+
position: 'absolute',
|
|
7301
|
+
top: '-4px',
|
|
7302
|
+
left: '-4px',
|
|
7303
|
+
width: '28px',
|
|
7304
|
+
height: '28px',
|
|
7305
|
+
},
|
|
7306
|
+
}),
|
|
7307
|
+
label: {
|
|
7308
|
+
...textSmallStyle,
|
|
7309
|
+
paddingTop: '2px',
|
|
7310
|
+
minWidth: 0,
|
|
7311
|
+
minHeight: 0,
|
|
7312
|
+
color: textColor,
|
|
7313
|
+
...mergeDeep(buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
|
|
7314
|
+
order: alignLabelValue === 'left' ? -1 : 0,
|
|
7315
|
+
})), buildResponsiveStyles(hideLabel, getHiddenTextJssStyle)),
|
|
7316
|
+
},
|
|
7317
|
+
});
|
|
6113
7318
|
};
|
|
6114
7319
|
|
|
6115
7320
|
const getComponentCss$j = () => {
|
|
6116
7321
|
return getCss({
|
|
6117
7322
|
'@global': {
|
|
6118
|
-
':host': addImportantToEachRule(
|
|
7323
|
+
':host': addImportantToEachRule({
|
|
7324
|
+
display: 'table-row-group',
|
|
7325
|
+
...hostHiddenStyles,
|
|
7326
|
+
}),
|
|
6119
7327
|
},
|
|
6120
7328
|
});
|
|
6121
7329
|
};
|
|
@@ -6123,7 +7331,16 @@ const getComponentCss$j = () => {
|
|
|
6123
7331
|
const getComponentCss$i = (multiline) => {
|
|
6124
7332
|
return getCss({
|
|
6125
7333
|
'@global': {
|
|
6126
|
-
':host':
|
|
7334
|
+
':host': {
|
|
7335
|
+
...addImportantToEachRule({
|
|
7336
|
+
display: 'table-cell',
|
|
7337
|
+
padding: spacingFluidSmall,
|
|
7338
|
+
margin: 0,
|
|
7339
|
+
whiteSpace: multiline ? 'normal' : 'nowrap',
|
|
7340
|
+
...hostHiddenStyles,
|
|
7341
|
+
}),
|
|
7342
|
+
verticalAlign: 'middle',
|
|
7343
|
+
},
|
|
6127
7344
|
},
|
|
6128
7345
|
});
|
|
6129
7346
|
};
|
|
@@ -6140,13 +7357,24 @@ const getComponentCss$h = (theme) => {
|
|
|
6140
7357
|
const { primaryColor, hoverColor, contrastLowColor } = doGetThemedColors(theme);
|
|
6141
7358
|
return getCss({
|
|
6142
7359
|
'@global': {
|
|
6143
|
-
':host': addImportantToEachRule(
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
7360
|
+
':host': addImportantToEachRule({
|
|
7361
|
+
display: 'block',
|
|
7362
|
+
...textSmallStyle,
|
|
7363
|
+
color: primaryColor,
|
|
7364
|
+
textAlign: 'left',
|
|
7365
|
+
...hostHiddenStyles,
|
|
7366
|
+
}),
|
|
7367
|
+
'::slotted(*)': addImportantToEachRule({
|
|
7368
|
+
[cssVariableTableHoverColor]: hoverColor,
|
|
7369
|
+
[cssVariableTableBorderColor]: contrastLowColor,
|
|
7370
|
+
[cssVariableTableHeadCellIconFilter]: isThemeDark(theme) ? 'invert(100%)' : 'none',
|
|
7371
|
+
...(isHighContrastMode &&
|
|
7372
|
+
getSchemedHighContrastMediaQuery({
|
|
7373
|
+
[cssVariableTableHeadCellIconFilter]: 'none',
|
|
7374
|
+
}, {
|
|
7375
|
+
[cssVariableTableHeadCellIconFilter]: 'invert(100%)',
|
|
7376
|
+
})),
|
|
7377
|
+
}),
|
|
6150
7378
|
},
|
|
6151
7379
|
caption: {
|
|
6152
7380
|
marginBottom: spacingFluidMedium,
|
|
@@ -6165,48 +7393,91 @@ const buttonBeforeOffsetVertical = '-2px';
|
|
|
6165
7393
|
const buttonBeforeOffsetHorizontal = '-4px';
|
|
6166
7394
|
const getComponentCss$g = (active, direction, hideLabel, multiline) => {
|
|
6167
7395
|
const sortable = isSortable(active, direction);
|
|
6168
|
-
return getCss(
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
7396
|
+
return getCss({
|
|
7397
|
+
'@global': {
|
|
7398
|
+
':host': addImportantToEachRule({
|
|
7399
|
+
display: 'table-cell',
|
|
7400
|
+
padding: `2px ${spacingFluidSmall} ${spacingFluidSmall}`,
|
|
7401
|
+
verticalAlign: 'bottom',
|
|
7402
|
+
whiteSpace: multiline ? 'normal' : 'nowrap',
|
|
7403
|
+
...hostHiddenStyles,
|
|
7404
|
+
}),
|
|
7405
|
+
...(sortable
|
|
7406
|
+
? {
|
|
7407
|
+
button: {
|
|
7408
|
+
position: 'relative',
|
|
7409
|
+
display: 'flex',
|
|
7410
|
+
gap: spacingStaticXSmall,
|
|
7411
|
+
width: 'auto',
|
|
7412
|
+
margin: 0,
|
|
7413
|
+
padding: 0,
|
|
7414
|
+
font: 'inherit',
|
|
7415
|
+
color: 'inherit',
|
|
7416
|
+
outline: 0,
|
|
7417
|
+
alignItems: 'flex-end',
|
|
7418
|
+
appearance: 'none',
|
|
7419
|
+
background: 'transparent',
|
|
7420
|
+
textAlign: 'left',
|
|
7421
|
+
border: 0,
|
|
7422
|
+
zIndex: 0,
|
|
7423
|
+
cursor: 'pointer',
|
|
7424
|
+
'&::before': {
|
|
7425
|
+
content: '""',
|
|
7426
|
+
position: 'absolute',
|
|
7427
|
+
top: buttonBeforeOffsetVertical,
|
|
7428
|
+
bottom: buttonBeforeOffsetVertical,
|
|
7429
|
+
right: buttonBeforeOffsetHorizontal,
|
|
7430
|
+
left: buttonBeforeOffsetHorizontal,
|
|
7431
|
+
borderRadius: borderRadiusSmall,
|
|
7432
|
+
zIndex: -1,
|
|
7433
|
+
transition: getTransition('background-color'),
|
|
7434
|
+
},
|
|
7435
|
+
...hoverMediaQuery({
|
|
7436
|
+
'&:hover, &:focus': {
|
|
7437
|
+
'& .icon': {
|
|
7438
|
+
opacity: 1,
|
|
7439
|
+
},
|
|
7440
|
+
},
|
|
7441
|
+
'&:hover::before': {
|
|
7442
|
+
...frostedGlassStyle,
|
|
7443
|
+
backgroundColor: hoverColor,
|
|
7444
|
+
},
|
|
7445
|
+
}),
|
|
7446
|
+
'&:focus::before': {
|
|
7447
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
7448
|
+
},
|
|
7449
|
+
'&:not(:focus-visible)::before': {
|
|
7450
|
+
border: 0,
|
|
6184
7451
|
},
|
|
6185
7452
|
},
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
7453
|
+
}
|
|
7454
|
+
: hideLabel && {
|
|
7455
|
+
span: {
|
|
7456
|
+
...getHiddenTextJssStyle(),
|
|
7457
|
+
display: 'block',
|
|
6190
7458
|
border: 0,
|
|
6191
|
-
}
|
|
6192
|
-
|
|
6193
|
-
: hideLabel && {
|
|
6194
|
-
span: Object.assign(Object.assign({}, getHiddenTextJssStyle()), { display: 'block', border: 0 }),
|
|
6195
|
-
})) }, (sortable && {
|
|
6196
|
-
icon: {
|
|
6197
|
-
transition: getTransition('opacity'),
|
|
6198
|
-
opacity: active ? 1 : 0,
|
|
6199
|
-
transform: `rotate3d(0,0,1,${isDirectionAsc(direction) ? 0 : 180}deg)`,
|
|
6200
|
-
transformOrigin: '50% 50%',
|
|
6201
|
-
filter: `var(${cssVariableTableHeadCellIconFilter})`,
|
|
7459
|
+
},
|
|
7460
|
+
}),
|
|
6202
7461
|
},
|
|
6203
|
-
|
|
7462
|
+
...(sortable && {
|
|
7463
|
+
icon: {
|
|
7464
|
+
transition: getTransition('opacity'),
|
|
7465
|
+
opacity: active ? 1 : 0,
|
|
7466
|
+
transform: `rotate3d(0,0,1,${isDirectionAsc(direction) ? 0 : 180}deg)`,
|
|
7467
|
+
transformOrigin: '50% 50%',
|
|
7468
|
+
filter: `var(${cssVariableTableHeadCellIconFilter})`,
|
|
7469
|
+
},
|
|
7470
|
+
}),
|
|
7471
|
+
});
|
|
6204
7472
|
};
|
|
6205
7473
|
|
|
6206
7474
|
const getComponentCss$f = () => {
|
|
6207
7475
|
return getCss({
|
|
6208
7476
|
'@global': {
|
|
6209
|
-
':host': addImportantToEachRule(
|
|
7477
|
+
':host': addImportantToEachRule({
|
|
7478
|
+
display: 'table-row',
|
|
7479
|
+
...hostHiddenStyles,
|
|
7480
|
+
}),
|
|
6210
7481
|
},
|
|
6211
7482
|
});
|
|
6212
7483
|
};
|
|
@@ -6214,7 +7485,13 @@ const getComponentCss$f = () => {
|
|
|
6214
7485
|
const getComponentCss$e = () => {
|
|
6215
7486
|
return getCss({
|
|
6216
7487
|
'@global': {
|
|
6217
|
-
':host': addImportantToEachRule(
|
|
7488
|
+
':host': addImportantToEachRule({
|
|
7489
|
+
display: 'table-header-group',
|
|
7490
|
+
fontSize: fontSizeTextXSmall,
|
|
7491
|
+
lineHeight: fontLineHeight,
|
|
7492
|
+
fontWeight: fontWeightSemiBold,
|
|
7493
|
+
...hostHiddenStyles,
|
|
7494
|
+
}),
|
|
6218
7495
|
},
|
|
6219
7496
|
});
|
|
6220
7497
|
};
|
|
@@ -6222,52 +7499,132 @@ const getComponentCss$e = () => {
|
|
|
6222
7499
|
const getComponentCss$d = () => {
|
|
6223
7500
|
return getCss({
|
|
6224
7501
|
'@global': {
|
|
6225
|
-
':host': addImportantToEachRule(
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
7502
|
+
':host': addImportantToEachRule({
|
|
7503
|
+
display: 'table-row',
|
|
7504
|
+
borderTop: `1px solid var(${cssVariableTableBorderColor})`,
|
|
7505
|
+
borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
|
|
7506
|
+
transition: getTransition('background'),
|
|
7507
|
+
...hostHiddenStyles,
|
|
7508
|
+
...hoverMediaQuery({
|
|
7509
|
+
'&(:hover)': {
|
|
7510
|
+
// ...frostedGlassStyle, // will result in not smooth transition when applied
|
|
7511
|
+
background: `var(${cssVariableTableHoverColor})`,
|
|
7512
|
+
},
|
|
7513
|
+
}),
|
|
7514
|
+
}),
|
|
6231
7515
|
},
|
|
6232
7516
|
});
|
|
6233
7517
|
};
|
|
6234
7518
|
|
|
6235
|
-
const
|
|
6236
|
-
const
|
|
7519
|
+
const barTransitionDuration = '.4s';
|
|
7520
|
+
const scrollerAnimatedCssClass = 'scroller--animated';
|
|
7521
|
+
const targetSelectors = ['a', 'button'];
|
|
7522
|
+
const transformSelector = (selector) => targetSelectors.map((tag) => selector.replace(/\[role]/g, tag)).join();
|
|
6237
7523
|
const getComponentCss$c = (size, weight, theme) => {
|
|
6238
7524
|
const { primaryColor, hoverColor, focusColor } = getThemedColors(theme);
|
|
7525
|
+
const barJssStyle = {
|
|
7526
|
+
position: 'absolute',
|
|
7527
|
+
height: '2px',
|
|
7528
|
+
left: 0,
|
|
7529
|
+
background: isHighContrastMode ? getHighContrastColors().canvasTextColor : primaryColor,
|
|
7530
|
+
};
|
|
6239
7531
|
return getCss({
|
|
6240
|
-
'@global':
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
7532
|
+
'@global': {
|
|
7533
|
+
':host': {
|
|
7534
|
+
display: 'block',
|
|
7535
|
+
...addImportantToEachRule({
|
|
7536
|
+
position: 'relative',
|
|
7537
|
+
...hostHiddenStyles,
|
|
7538
|
+
}),
|
|
7539
|
+
},
|
|
7540
|
+
...addImportantToEachRule({
|
|
7541
|
+
// would be nice to use shared selector like '::slotted([role])'
|
|
7542
|
+
// but this doesn't work reliably when rendering in browser
|
|
7543
|
+
[transformSelector('::slotted([role])')]: {
|
|
7544
|
+
...getResetInitialStylesForSlottedAnchor,
|
|
7545
|
+
display: 'inline-block',
|
|
7546
|
+
position: 'relative',
|
|
7547
|
+
margin: '0 0 4px 0',
|
|
7548
|
+
verticalAlign: 'top',
|
|
7549
|
+
fontFamily: 'inherit',
|
|
7550
|
+
fontStyle: 'inherit',
|
|
7551
|
+
fontVariant: 'inherit',
|
|
7552
|
+
fontWeight: 'inherit',
|
|
7553
|
+
fontSize: 'inherit',
|
|
7554
|
+
lineHeight: 'inherit',
|
|
7555
|
+
whiteSpace: 'nowrap',
|
|
7556
|
+
boxSizing: 'border-box',
|
|
7557
|
+
WebkitAppearance: 'none',
|
|
7558
|
+
appearance: 'none',
|
|
7559
|
+
outlineOffset: '1px',
|
|
7560
|
+
textDecoration: 'none',
|
|
7561
|
+
textAlign: 'left',
|
|
7562
|
+
border: 0,
|
|
7563
|
+
color: primaryColor,
|
|
7564
|
+
cursor: 'pointer',
|
|
7565
|
+
borderRadius: borderRadiusSmall,
|
|
7566
|
+
zIndex: 0,
|
|
7567
|
+
...hoverMediaQuery({
|
|
7568
|
+
'&::before': {
|
|
7569
|
+
content: '""',
|
|
7570
|
+
position: 'absolute',
|
|
7571
|
+
inset: '-2px -4px',
|
|
7572
|
+
borderRadius: borderRadiusSmall,
|
|
7573
|
+
zIndex: -1,
|
|
7574
|
+
transition: getTransition('background-color'),
|
|
7575
|
+
},
|
|
7576
|
+
}),
|
|
7577
|
+
},
|
|
7578
|
+
...hoverMediaQuery({
|
|
7579
|
+
[transformSelector('::slotted([role]:hover)::before')]: {
|
|
7580
|
+
...frostedGlassStyle,
|
|
7581
|
+
background: hoverColor,
|
|
7582
|
+
},
|
|
7583
|
+
}),
|
|
7584
|
+
// basic invisible bar, that will be delayed via transition: visibility
|
|
7585
|
+
[transformSelector('::slotted([role])::after')]: {
|
|
7586
|
+
content: '""',
|
|
7587
|
+
visibility: 'hidden',
|
|
7588
|
+
},
|
|
7589
|
+
// visible bar for selected tab
|
|
7590
|
+
[transformSelector('::slotted([role][aria-selected="true"])::after')]: {
|
|
7591
|
+
...barJssStyle,
|
|
7592
|
+
right: '0px',
|
|
7593
|
+
bottom: isHighContrastMode ? '-4px' : '-6px',
|
|
7594
|
+
visibility: 'visible',
|
|
7595
|
+
},
|
|
7596
|
+
// TODO: combine link-social-styles with link-button-styles and tabs-bar-styles
|
|
7597
|
+
[transformSelector('::slotted([role]:focus:focus-visible)::before')]: {
|
|
7598
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
7599
|
+
},
|
|
7600
|
+
[transformSelector('::slotted([role]:not(:last-child))')]: {
|
|
7601
|
+
marginRight: spacingStaticMedium,
|
|
7602
|
+
},
|
|
7603
|
+
}),
|
|
7604
|
+
},
|
|
7605
|
+
scroller: {
|
|
7606
|
+
...textSmallStyle,
|
|
7607
|
+
fontWeight: getFontWeight(weight),
|
|
7608
|
+
...buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText[s] })),
|
|
7609
|
+
},
|
|
7610
|
+
// conditionally applied and removed based on if activeTabIndex exists
|
|
7611
|
+
[scrollerAnimatedCssClass]: {
|
|
7612
|
+
['& ' + transformSelector('::slotted([role][aria-selected="true"])::after')]: {
|
|
7613
|
+
transition: addImportantToRule(`visibility 0s linear ${barTransitionDuration}`), // bar appears after transition
|
|
7614
|
+
},
|
|
7615
|
+
},
|
|
7616
|
+
// moving bar
|
|
6260
7617
|
bar: {
|
|
6261
|
-
|
|
6262
|
-
position: 'absolute',
|
|
7618
|
+
...barJssStyle,
|
|
6263
7619
|
width: 0,
|
|
6264
|
-
height: '2px',
|
|
6265
|
-
left: 0,
|
|
6266
7620
|
bottom: isHighContrastMode ? '0' : '-2px',
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
7621
|
+
visibility: 'visible',
|
|
7622
|
+
transition: `transform ${barTransitionDuration},width ${barTransitionDuration}`,
|
|
7623
|
+
animation: '$hide 0s .5s forwards', // auto hide bar after transition, needs to be a little longer in Safari
|
|
7624
|
+
},
|
|
7625
|
+
'@keyframes hide': {
|
|
7626
|
+
to: {
|
|
7627
|
+
visibility: 'hidden',
|
|
6271
7628
|
},
|
|
6272
7629
|
},
|
|
6273
7630
|
});
|
|
@@ -6277,7 +7634,20 @@ const getComponentCss$b = (theme) => {
|
|
|
6277
7634
|
const { primaryColor, focusColor } = getThemedColors(theme);
|
|
6278
7635
|
return getCss({
|
|
6279
7636
|
'@global': {
|
|
6280
|
-
':host': addImportantToEachRule(
|
|
7637
|
+
':host': addImportantToEachRule({
|
|
7638
|
+
display: 'block',
|
|
7639
|
+
position: 'relative',
|
|
7640
|
+
color: primaryColor,
|
|
7641
|
+
...hostHiddenStyles,
|
|
7642
|
+
outline: 0,
|
|
7643
|
+
'&(:focus:focus-visible)::before': {
|
|
7644
|
+
content: '""',
|
|
7645
|
+
position: 'absolute',
|
|
7646
|
+
...getInsetJssStyle(-4),
|
|
7647
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
7648
|
+
borderRadius: borderRadiusSmall,
|
|
7649
|
+
},
|
|
7650
|
+
}),
|
|
6281
7651
|
},
|
|
6282
7652
|
});
|
|
6283
7653
|
};
|
|
@@ -6285,7 +7655,10 @@ const getComponentCss$b = (theme) => {
|
|
|
6285
7655
|
const getComponentCss$a = () => {
|
|
6286
7656
|
return getCss({
|
|
6287
7657
|
'@global': {
|
|
6288
|
-
':host':
|
|
7658
|
+
':host': {
|
|
7659
|
+
display: 'block',
|
|
7660
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
7661
|
+
},
|
|
6289
7662
|
},
|
|
6290
7663
|
root: {
|
|
6291
7664
|
marginBottom: '8px',
|
|
@@ -6295,7 +7668,13 @@ const getComponentCss$a = () => {
|
|
|
6295
7668
|
|
|
6296
7669
|
const getTagFocusJssStyle = (themedColors) => {
|
|
6297
7670
|
return {
|
|
6298
|
-
'&:focus::before':
|
|
7671
|
+
'&:focus::before': {
|
|
7672
|
+
content: '""',
|
|
7673
|
+
position: 'absolute',
|
|
7674
|
+
...getInsetJssStyle(-4),
|
|
7675
|
+
border: `${borderWidthBase} solid ${themedColors.focusColor}`,
|
|
7676
|
+
borderRadius: borderRadiusMedium,
|
|
7677
|
+
},
|
|
6299
7678
|
'&:focus:not(:focus-visible)::before': {
|
|
6300
7679
|
borderColor: 'transparent',
|
|
6301
7680
|
},
|
|
@@ -6318,26 +7697,53 @@ const getComponentCss$9 = (color, hasLabel, theme) => {
|
|
|
6318
7697
|
const themedColors = getThemedColors(theme);
|
|
6319
7698
|
const { primaryColor, hoverColor, contrastHighColor } = themedColors;
|
|
6320
7699
|
const backgroundColor = getThemedBackgroundColor(color, themedColors);
|
|
6321
|
-
return getCss(
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
7700
|
+
return getCss({
|
|
7701
|
+
'@global': {
|
|
7702
|
+
':host': addImportantToEachRule({
|
|
7703
|
+
display: 'inline-block',
|
|
7704
|
+
verticalAlign: 'top',
|
|
7705
|
+
outline: 0,
|
|
7706
|
+
...hostHiddenStyles,
|
|
7707
|
+
}),
|
|
7708
|
+
button: {
|
|
7709
|
+
display: 'flex',
|
|
7710
|
+
position: 'relative',
|
|
7711
|
+
alignItems: 'center',
|
|
7712
|
+
gap: '12px',
|
|
7713
|
+
minHeight: '54px',
|
|
7714
|
+
padding: '4px 0 4px 12px',
|
|
7715
|
+
borderRadius: borderRadiusSmall,
|
|
7716
|
+
border: 0,
|
|
7717
|
+
cursor: 'pointer',
|
|
7718
|
+
background: backgroundColor,
|
|
7719
|
+
color: primaryColor,
|
|
7720
|
+
textAlign: 'left',
|
|
7721
|
+
...textSmallStyle,
|
|
7722
|
+
outline: isHighContrastMode ? '1px solid transparent' : 0,
|
|
7723
|
+
...getTagFocusJssStyle(themedColors),
|
|
7724
|
+
...hoverMediaQuery({
|
|
7725
|
+
'&:hover > .icon': {
|
|
7726
|
+
backgroundColor: hoverColor,
|
|
7727
|
+
},
|
|
7728
|
+
}),
|
|
7729
|
+
},
|
|
6334
7730
|
},
|
|
6335
|
-
|
|
7731
|
+
...(hasLabel && {
|
|
7732
|
+
label: {
|
|
7733
|
+
display: 'block',
|
|
7734
|
+
marginBottom: '-4px',
|
|
7735
|
+
color: contrastHighColor,
|
|
7736
|
+
fontSize: fontSizeTextXSmall,
|
|
7737
|
+
},
|
|
7738
|
+
}),
|
|
7739
|
+
icon: {
|
|
6336
7740
|
padding: '4px',
|
|
6337
7741
|
marginRight: '10px',
|
|
6338
7742
|
transition: getTransition('background-color'),
|
|
6339
7743
|
borderRadius: borderRadiusSmall,
|
|
6340
|
-
},
|
|
7744
|
+
},
|
|
7745
|
+
'sr-only': getHiddenTextJssStyle(),
|
|
7746
|
+
});
|
|
6341
7747
|
};
|
|
6342
7748
|
|
|
6343
7749
|
const getThemedBackgroundHoverColor = (tagColor, themedColors, theme) => {
|
|
@@ -6369,25 +7775,59 @@ const getComponentCss$8 = (tagColor, isFocusable, theme) => {
|
|
|
6369
7775
|
const { primaryColor, backgroundColor, backgroundHoverColor } = getColors(themedColors, tagColor, theme);
|
|
6370
7776
|
return getCss({
|
|
6371
7777
|
'@global': {
|
|
6372
|
-
':host':
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
7778
|
+
':host': {
|
|
7779
|
+
display: 'inline-flex',
|
|
7780
|
+
verticalAlign: 'top',
|
|
7781
|
+
whiteSpace: 'nowrap',
|
|
7782
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
7783
|
+
},
|
|
7784
|
+
span: {
|
|
7785
|
+
display: 'flex',
|
|
7786
|
+
gap: '2px',
|
|
7787
|
+
alignItems: 'center',
|
|
7788
|
+
position: 'relative',
|
|
7789
|
+
padding: '4px 9px',
|
|
7790
|
+
borderRadius: borderRadiusSmall,
|
|
7791
|
+
background: backgroundColor,
|
|
7792
|
+
color: primaryColor,
|
|
7793
|
+
font: textXSmallStyle.font,
|
|
7794
|
+
...(isHighContrastMode && {
|
|
7795
|
+
outline: '1px solid transparent',
|
|
7796
|
+
}),
|
|
7797
|
+
...(isFocusable &&
|
|
7798
|
+
hoverMediaQuery({
|
|
7799
|
+
transition: getTransition('background-color'),
|
|
7800
|
+
'&:hover': {
|
|
7801
|
+
background: backgroundHoverColor,
|
|
7802
|
+
},
|
|
7803
|
+
})),
|
|
7804
|
+
},
|
|
7805
|
+
'::slotted': addImportantToEachRule({
|
|
7806
|
+
'&(a),&(button)': {
|
|
7807
|
+
...getResetInitialStylesForSlottedAnchor,
|
|
7808
|
+
display: 'inline',
|
|
7809
|
+
position: 'static',
|
|
7810
|
+
textDecoration: 'underline',
|
|
7811
|
+
cursor: 'pointer',
|
|
7812
|
+
font: 'inherit',
|
|
7813
|
+
color: 'inherit',
|
|
7814
|
+
appearance: 'none',
|
|
7815
|
+
border: 0,
|
|
7816
|
+
textAlign: 'left',
|
|
7817
|
+
},
|
|
7818
|
+
// Transform selectors of getTagFocusJssStyle() to fit the ::slotted syntax
|
|
7819
|
+
...Object.entries(getTagFocusJssStyle(themedColors)).reduce((result, [key, value]) => {
|
|
7820
|
+
result[key.replace(/^&([a-z:\-()]*)(::[a-z\-]+)$/, '&(a$1)$2, &(button$1)$2')] = value;
|
|
7821
|
+
return result;
|
|
7822
|
+
}, {}),
|
|
7823
|
+
'&(br)': {
|
|
6386
7824
|
display: 'none',
|
|
6387
|
-
}
|
|
7825
|
+
},
|
|
7826
|
+
}),
|
|
6388
7827
|
},
|
|
6389
7828
|
icon: {
|
|
6390
|
-
marginLeft: '-2px',
|
|
7829
|
+
marginLeft: '-2px',
|
|
7830
|
+
alignSelf: 'flex-start',
|
|
6391
7831
|
},
|
|
6392
7832
|
});
|
|
6393
7833
|
};
|
|
@@ -6434,38 +7874,72 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
|
|
|
6434
7874
|
const isSearchWithoutForm = isSearch && !isWithinForm;
|
|
6435
7875
|
const isSearchWithForm = isSearch && isWithinForm;
|
|
6436
7876
|
const isCalendarOrTimeWithCustomIndicator = showCustomCalendarOrTimeIndicator(isCalendar, isTime);
|
|
6437
|
-
return getCss(
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
7877
|
+
return getCss({
|
|
7878
|
+
'@global': {
|
|
7879
|
+
':host': {
|
|
7880
|
+
display: 'block',
|
|
7881
|
+
...addImportantToEachRule({
|
|
7882
|
+
[cssVariableInputPaddingLeft]: isSearchWithoutForm ? getInputPaddingHorizontal(1) : spacingStaticMedium,
|
|
7883
|
+
[cssVariableInputPaddingRight]: isSearchOrPassword || isCalendarOrTimeWithCustomIndicator
|
|
7884
|
+
? getInputPaddingHorizontal(isSearchWithForm ? 2 : 1)
|
|
7885
|
+
: spacingStaticMedium,
|
|
7886
|
+
...hostHiddenStyles,
|
|
7887
|
+
}),
|
|
7888
|
+
},
|
|
7889
|
+
...addImportantToEachRule({
|
|
7890
|
+
...getBaseChildStyles('input', state, theme, {
|
|
7891
|
+
padding: `${spacingStaticSmall} var(${cssVariableInputPaddingRight}) ${spacingStaticSmall} var(${cssVariableInputPaddingLeft})`,
|
|
7892
|
+
...(isNumber && {
|
|
7893
|
+
MozAppearance: 'textfield', // hides up/down spin button for Firefox
|
|
7894
|
+
}),
|
|
7895
|
+
}),
|
|
7896
|
+
'::slotted': {
|
|
7897
|
+
'&(input:-internal-autofill-selected),&(input:-internal-autofill-previewed),&(input:-webkit-autofill),&(input:-webkit-autofill:focus)': {
|
|
7898
|
+
WebkitBackgroundClip: 'padding-box', // reset webkit autofill styles
|
|
7899
|
+
},
|
|
6444
7900
|
},
|
|
6445
|
-
}
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
7901
|
+
}),
|
|
7902
|
+
},
|
|
7903
|
+
...((isSearchOrPassword || isCalendarOrTimeWithCustomIndicator) && {
|
|
7904
|
+
button: {
|
|
7905
|
+
...baseButtonOrIconStyles,
|
|
7906
|
+
right: getButtonOrIconOffsetHorizontal(1),
|
|
7907
|
+
// TODO: maybe we should render hidden button conditionally, needs to be checked if a11y compliant
|
|
7908
|
+
'&:not([hidden]) ~ .button': {
|
|
7909
|
+
right: getButtonOrIconOffsetHorizontal(2),
|
|
7910
|
+
},
|
|
7911
|
+
},
|
|
7912
|
+
}),
|
|
7913
|
+
...(isSearchWithoutForm && {
|
|
7914
|
+
icon: {
|
|
7915
|
+
...baseButtonOrIconStyles,
|
|
7916
|
+
left: getButtonOrIconOffsetHorizontal(1),
|
|
7917
|
+
pointerEvents: 'none',
|
|
7918
|
+
},
|
|
7919
|
+
}),
|
|
7920
|
+
root: {
|
|
6454
7921
|
display: 'block',
|
|
6455
7922
|
position: 'relative',
|
|
6456
|
-
}
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
7923
|
+
},
|
|
7924
|
+
...getLabelStyles('input', isDisabled, hideLabel, state, theme, hasUnitOrVisibleCounter && {
|
|
7925
|
+
unit: {
|
|
7926
|
+
position: 'absolute',
|
|
7927
|
+
bottom: '15px',
|
|
7928
|
+
[unitPosition === 'suffix' ? 'right' : 'left']: 0,
|
|
7929
|
+
zIndex: 1,
|
|
7930
|
+
padding: unitPosition === 'suffix' ? `0 ${spacingStaticMedium} 0 10px` : `0 10px 0 ${spacingStaticMedium}`,
|
|
7931
|
+
font: textSmallStyle.font,
|
|
7932
|
+
color: contrastMediumColor,
|
|
7933
|
+
},
|
|
7934
|
+
}),
|
|
7935
|
+
...getFunctionalComponentRequiredStyles(),
|
|
7936
|
+
...getFunctionalComponentStateMessageStyles(theme, state),
|
|
6467
7937
|
// TODO: could be made conditional if we had hasUnit
|
|
6468
|
-
'sr-only':
|
|
7938
|
+
'sr-only': {
|
|
7939
|
+
...getHiddenTextJssStyle(),
|
|
7940
|
+
padding: 0,
|
|
7941
|
+
},
|
|
7942
|
+
});
|
|
6469
7943
|
};
|
|
6470
7944
|
|
|
6471
7945
|
/** @deprecated */
|
|
@@ -6483,24 +7957,42 @@ const getComponentCss$6 = (type, theme) => {
|
|
|
6483
7957
|
const isOrderedList = isListTypeOrdered(type);
|
|
6484
7958
|
return getCss({
|
|
6485
7959
|
'@global': {
|
|
6486
|
-
':host':
|
|
6487
|
-
|
|
7960
|
+
':host': {
|
|
7961
|
+
display: 'block',
|
|
7962
|
+
...addImportantToEachRule({
|
|
7963
|
+
counterReset: counter,
|
|
7964
|
+
...hostHiddenStyles,
|
|
7965
|
+
}),
|
|
7966
|
+
},
|
|
7967
|
+
'ol,ul': {
|
|
7968
|
+
...textSmallStyle,
|
|
7969
|
+
color: getThemedColors(theme).primaryColor,
|
|
7970
|
+
margin: 0,
|
|
7971
|
+
padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) ${isOrderedList
|
|
6488
7972
|
? `var(${cssVariableOrderedPaddingLeft},1.5rem)` // reserves space for ::before (root ordered list)
|
|
6489
7973
|
: `var(${cssVariableUnorderedPaddingLeft},.375rem)` // reserves space for ::marker "•" (root unordered list)
|
|
6490
|
-
}`,
|
|
7974
|
+
}`,
|
|
7975
|
+
listStyleType: isOrderedList ? 'none' : `var(${cssVariableListStyleType},'•')`, // custom ::marker char for root unordered list
|
|
7976
|
+
},
|
|
6491
7977
|
// css selector for text-list-item
|
|
6492
|
-
'::slotted(*)': addImportantToEachRule(
|
|
7978
|
+
'::slotted(*)': addImportantToEachRule({
|
|
7979
|
+
[cssVariablePaddingTop]: spacingStaticXSmall,
|
|
6493
7980
|
// TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
|
|
6494
|
-
[cssVariablePaddingBottom]: spacingStaticMedium,
|
|
6495
|
-
'
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
7981
|
+
[cssVariablePaddingBottom]: spacingStaticMedium,
|
|
7982
|
+
[cssVariableOrderedPaddingLeft]: '2rem',
|
|
7983
|
+
[cssVariableUnorderedPaddingLeft]: '.625rem',
|
|
7984
|
+
[cssVariableListStyleType]: '"–"',
|
|
7985
|
+
...(isOrderedList && {
|
|
7986
|
+
'&::before': {
|
|
7987
|
+
content: `counters(${counter},'.',${isListTypeNumbered(type) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
|
|
7988
|
+
counterIncrement: counter,
|
|
7989
|
+
position: 'absolute',
|
|
7990
|
+
top: 0,
|
|
7991
|
+
left: 0,
|
|
7992
|
+
transform: 'translate(-100%,0)',
|
|
7993
|
+
},
|
|
7994
|
+
}),
|
|
7995
|
+
}),
|
|
6504
7996
|
},
|
|
6505
7997
|
});
|
|
6506
7998
|
};
|
|
@@ -6508,7 +8000,15 @@ const getComponentCss$6 = (type, theme) => {
|
|
|
6508
8000
|
const getComponentCss$5 = () => {
|
|
6509
8001
|
return getCss({
|
|
6510
8002
|
'@global': addImportantToEachRule({
|
|
6511
|
-
':host':
|
|
8003
|
+
':host': {
|
|
8004
|
+
display: 'list-item',
|
|
8005
|
+
position: 'relative',
|
|
8006
|
+
font: 'inherit',
|
|
8007
|
+
color: 'inherit',
|
|
8008
|
+
listStyleType: 'inherit',
|
|
8009
|
+
paddingLeft: spacingStaticMedium,
|
|
8010
|
+
...hostHiddenStyles,
|
|
8011
|
+
},
|
|
6512
8012
|
'::slotted(*)': {
|
|
6513
8013
|
[cssVariablePseudoSuffix]: '""', // don't show suffix "." for nested ordered list
|
|
6514
8014
|
},
|
|
@@ -6529,7 +8029,10 @@ const sizeMap = {
|
|
|
6529
8029
|
const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
|
|
6530
8030
|
return getCss({
|
|
6531
8031
|
'@global': {
|
|
6532
|
-
':host':
|
|
8032
|
+
':host': {
|
|
8033
|
+
display: 'block',
|
|
8034
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
8035
|
+
},
|
|
6533
8036
|
'::slotted': {
|
|
6534
8037
|
[TEXT_TAGS.map((i) => `&(${i})`).join()]: addImportantToEachRule(getTypographySlottedJssStyle()),
|
|
6535
8038
|
},
|
|
@@ -6543,27 +8046,42 @@ const getComponentCss$4 = (size, weight, align, color, ellipsis, theme) => {
|
|
|
6543
8046
|
|
|
6544
8047
|
const getComponentCss$3 = (isDisabled, hideLabel, state, hasCounter, theme) => {
|
|
6545
8048
|
const { contrastMediumColor } = getThemedColors(theme);
|
|
6546
|
-
return getCss(
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
color: contrastMediumColor,
|
|
8049
|
+
return getCss({
|
|
8050
|
+
'@global': {
|
|
8051
|
+
':host': addImportantToEachRule({
|
|
8052
|
+
display: 'block',
|
|
8053
|
+
...hostHiddenStyles,
|
|
8054
|
+
}),
|
|
8055
|
+
...mergeDeep(addImportantToEachRule(getBaseChildStyles('textarea', state, theme, {
|
|
8056
|
+
font: textSmallStyle.font,
|
|
8057
|
+
padding: hasCounter ? `12px ${spacingStaticMedium} ${spacingStaticLarge}` : `12px ${spacingStaticMedium}`,
|
|
8058
|
+
})), {
|
|
8059
|
+
'::slotted(textarea)': {
|
|
8060
|
+
height: 'auto',
|
|
8061
|
+
minHeight: '200px',
|
|
8062
|
+
resize: 'vertical', // overridable, too
|
|
8063
|
+
},
|
|
8064
|
+
}),
|
|
6563
8065
|
},
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
8066
|
+
...getLabelStyles('textarea', isDisabled, hideLabel, state, theme, hasCounter && {
|
|
8067
|
+
counter: {
|
|
8068
|
+
position: 'absolute',
|
|
8069
|
+
bottom: '6px',
|
|
8070
|
+
right: '12px',
|
|
8071
|
+
zIndex: 1,
|
|
8072
|
+
font: textSmallStyle.font,
|
|
8073
|
+
color: contrastMediumColor,
|
|
8074
|
+
},
|
|
8075
|
+
}),
|
|
8076
|
+
...getFunctionalComponentRequiredStyles(),
|
|
8077
|
+
...getFunctionalComponentStateMessageStyles(theme, state),
|
|
8078
|
+
...(hasCounter && {
|
|
8079
|
+
'sr-only': {
|
|
8080
|
+
...getHiddenTextJssStyle(),
|
|
8081
|
+
padding: 0,
|
|
8082
|
+
},
|
|
8083
|
+
}),
|
|
8084
|
+
});
|
|
6567
8085
|
};
|
|
6568
8086
|
|
|
6569
8087
|
const cssVariablePositionBottom = '--p-toast-position-bottom'; // CSS custom property exposed as public interface
|
|
@@ -6592,15 +8110,24 @@ const toastCloseClassName = 'close';
|
|
|
6592
8110
|
const getComponentCss$1 = () => {
|
|
6593
8111
|
return getCss({
|
|
6594
8112
|
'@global': {
|
|
6595
|
-
':host': addImportantToEachRule(
|
|
8113
|
+
':host': addImportantToEachRule({
|
|
8114
|
+
position: 'fixed',
|
|
8115
|
+
left: gridExtendedOffsetBase,
|
|
8116
|
+
right: gridExtendedOffsetBase,
|
|
6596
8117
|
// Needs a not overridable internal css variable to cover default position depending on viewport size and to handle animation properly.
|
|
6597
8118
|
// In addition, a public css variable can be passed to overwrite the default position.
|
|
6598
|
-
[cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 56px)`,
|
|
8119
|
+
[cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 56px)`,
|
|
8120
|
+
bottom: `var(${cssVariablePositionBottomInternal})`,
|
|
8121
|
+
maxWidth: '42rem',
|
|
8122
|
+
zIndex: TOAST_Z_INDEX,
|
|
8123
|
+
[getMediaQueryMin('s')]: {
|
|
6599
8124
|
left: '64px',
|
|
6600
8125
|
right: 'auto',
|
|
6601
8126
|
[cssVariablePositionBottomInternal]: `var(${cssVariablePositionBottom}, 64px)`,
|
|
6602
8127
|
bottom: `var(${cssVariablePositionBottomInternal})`,
|
|
6603
|
-
}
|
|
8128
|
+
},
|
|
8129
|
+
...hostHiddenStyles,
|
|
8130
|
+
}),
|
|
6604
8131
|
'@keyframes in': getKeyframesMobile('in', cssVariablePositionBottomInternal),
|
|
6605
8132
|
'@keyframes out': getKeyframesMobile('out', cssVariablePositionBottomInternal),
|
|
6606
8133
|
},
|
|
@@ -6616,20 +8143,35 @@ const getComponentCss$1 = () => {
|
|
|
6616
8143
|
const getComponentCss = (size, theme) => {
|
|
6617
8144
|
return getCss({
|
|
6618
8145
|
'@global': {
|
|
6619
|
-
':host':
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
8146
|
+
':host': {
|
|
8147
|
+
position: 'relative',
|
|
8148
|
+
display: 'inline-block',
|
|
8149
|
+
verticalAlign: 'top',
|
|
8150
|
+
...addImportantToEachRule({
|
|
8151
|
+
outline: 0,
|
|
8152
|
+
maxWidth: '100%',
|
|
8153
|
+
maxHeight: '100%',
|
|
8154
|
+
boxSizing: 'content-box',
|
|
8155
|
+
...(size !== 'inherit' && {
|
|
8156
|
+
height: 'clamp(0.63rem, 0.42vw + 0.5rem, 1rem)',
|
|
8157
|
+
// workaround for Safari to optimize image rendering
|
|
8158
|
+
'@supports (height: round(down, 1px, 1px))': {
|
|
8159
|
+
height: 'round(down, clamp(0.63rem, 0.42vw + 0.5rem, 1rem), 1px)',
|
|
8160
|
+
},
|
|
8161
|
+
}),
|
|
8162
|
+
...hostHiddenStyles,
|
|
8163
|
+
}),
|
|
8164
|
+
},
|
|
6626
8165
|
'a, svg': {
|
|
6627
8166
|
display: 'block',
|
|
6628
8167
|
maxWidth: '100%',
|
|
6629
8168
|
maxHeight: '100%',
|
|
6630
8169
|
height: 'inherit',
|
|
6631
8170
|
},
|
|
6632
|
-
a:
|
|
8171
|
+
a: {
|
|
8172
|
+
textDecoration: 'none',
|
|
8173
|
+
...focusPseudoJssStyle,
|
|
8174
|
+
},
|
|
6633
8175
|
svg: {
|
|
6634
8176
|
fill: isHighContrastMode ? getHighContrastColors().canvasTextColor : getThemedColors(theme).primaryColor,
|
|
6635
8177
|
},
|