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