@porsche-design-system/components-react 3.27.3 → 3.28.0-rc.1
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 +30 -0
- package/cjs/lib/components/{flyout-multilevel-item.wrapper.cjs → drilldown-item.wrapper.cjs} +3 -3
- package/cjs/lib/components/drilldown-link.wrapper.cjs +26 -0
- package/cjs/lib/components/{flyout-multilevel.wrapper.cjs → drilldown.wrapper.cjs} +3 -3
- package/cjs/lib/components/input-password.wrapper.cjs +29 -0
- package/cjs/public-api.cjs +8 -4
- package/{ssr/esm/lib/components/flyout-multilevel-item.wrapper.d.ts → esm/lib/components/drilldown-item.wrapper.d.ts} +6 -6
- package/esm/lib/components/{flyout-multilevel-item.wrapper.mjs → drilldown-item.wrapper.mjs} +3 -3
- package/esm/lib/components/drilldown-link.wrapper.d.ts +56 -0
- package/esm/lib/components/drilldown-link.wrapper.mjs +24 -0
- package/esm/lib/components/drilldown.wrapper.d.ts +56 -0
- package/esm/lib/components/{flyout-multilevel.wrapper.mjs → drilldown.wrapper.mjs} +3 -3
- package/esm/lib/components/index.d.ts +4 -2
- package/esm/lib/components/input-password.wrapper.d.ts +176 -0
- package/esm/lib/components/input-password.wrapper.mjs +27 -0
- package/esm/lib/types.d.ts +24 -10
- package/esm/public-api.mjs +4 -2
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +629 -457
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +18 -9
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/{flyout-multilevel-item.wrapper.cjs → drilldown-item.wrapper.cjs} +5 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/drilldown-link.wrapper.cjs +37 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/{flyout-multilevel.wrapper.cjs → drilldown.wrapper.cjs} +5 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +3 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +34 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.cjs +25 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/{flyout-multilevel.cjs → drilldown.cjs} +9 -10
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +42 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.cjs +3 -11
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/legacy-label.cjs +14 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +2 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.cjs +1 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +8 -4
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +601 -431
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +16 -9
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/{flyout-multilevel-item.wrapper.mjs → drilldown-item.wrapper.mjs} +5 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/drilldown-link.wrapper.mjs +35 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/{flyout-multilevel.wrapper.mjs → drilldown.wrapper.mjs} +5 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/input-password.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +4 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +32 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +23 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/{flyout-multilevel.mjs → drilldown.mjs} +11 -12
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +40 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.mjs +4 -10
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/legacy-label.mjs +12 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.mjs +2 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +3 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.mjs +1 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +4 -2
- package/{esm/lib/components/flyout-multilevel-item.wrapper.d.ts → ssr/esm/lib/components/drilldown-item.wrapper.d.ts} +6 -6
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +56 -0
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +56 -0
- package/ssr/esm/lib/components/index.d.ts +4 -2
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +176 -0
- package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +16 -0
- package/ssr/esm/lib/dsr-components/drilldown-link.d.ts +10 -0
- package/ssr/esm/lib/dsr-components/{flyout-multilevel.d.ts → drilldown.d.ts} +3 -3
- package/ssr/esm/lib/dsr-components/input-password.d.ts +17 -0
- package/ssr/esm/lib/dsr-components/label.d.ts +2 -6
- package/ssr/esm/lib/dsr-components/legacy-label.d.ts +14 -0
- package/ssr/esm/lib/types.d.ts +24 -10
- package/esm/lib/components/flyout-multilevel.wrapper.d.ts +0 -56
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.cjs +0 -33
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/stripFocusAndHoverStyles.cjs +0 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-multilevel-item.mjs +0 -31
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/stripFocusAndHoverStyles.mjs +0 -6
- package/ssr/esm/lib/components/flyout-multilevel.wrapper.d.ts +0 -56
- package/ssr/esm/lib/dsr-components/flyout-multilevel-item.d.ts +0 -14
- package/ssr/esm/stripFocusAndHoverStyles.d.ts +0 -1
|
@@ -3932,7 +3932,7 @@ const formatObjectOutput = (value) => {
|
|
|
3932
3932
|
|
|
3933
3933
|
const OPTION_LIST_SAFE_ZONE = 6;
|
|
3934
3934
|
|
|
3935
|
-
const getComponentCss$
|
|
3935
|
+
const getComponentCss$1c = (size, compact, open, theme, sticky) => {
|
|
3936
3936
|
const { primaryColor, hoverColor, contrastLowColor, backgroundColor } = getThemedColors(theme);
|
|
3937
3937
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, backgroundColor: backgroundColorDark, } = getThemedColors('dark');
|
|
3938
3938
|
const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
|
|
@@ -4100,7 +4100,7 @@ const cssVariableTop = '--p-banner-position-top';
|
|
|
4100
4100
|
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4101
4101
|
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4102
4102
|
const topBottomFallback = '56px';
|
|
4103
|
-
const getComponentCss$
|
|
4103
|
+
const getComponentCss$1b = (isOpen) => {
|
|
4104
4104
|
return getCss({
|
|
4105
4105
|
'@global': {
|
|
4106
4106
|
':host': {
|
|
@@ -4172,7 +4172,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4172
4172
|
return groupDirectionJssStyles[direction];
|
|
4173
4173
|
};
|
|
4174
4174
|
|
|
4175
|
-
const getComponentCss$
|
|
4175
|
+
const getComponentCss$1a = (direction) => {
|
|
4176
4176
|
return getCss({
|
|
4177
4177
|
'@global': {
|
|
4178
4178
|
':host': {
|
|
@@ -4325,7 +4325,7 @@ const getFunctionalComponentLoadingMessageStyles = () => {
|
|
|
4325
4325
|
};
|
|
4326
4326
|
};
|
|
4327
4327
|
|
|
4328
|
-
const getComponentCss$
|
|
4328
|
+
const getComponentCss$19 = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, theme) => {
|
|
4329
4329
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4330
4330
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false, theme), {
|
|
4331
4331
|
root: {
|
|
@@ -4363,7 +4363,7 @@ const getFontWeight = (weight) => {
|
|
|
4363
4363
|
return fontWeightMap[weight];
|
|
4364
4364
|
};
|
|
4365
4365
|
|
|
4366
|
-
const getComponentCss$
|
|
4366
|
+
const getComponentCss$18 = (isDisabledOrLoading, aspectRatio, size, weight, background, align, compact, hasGradient, isDisabled) => {
|
|
4367
4367
|
const isTopAligned = align === 'top';
|
|
4368
4368
|
return getCss({
|
|
4369
4369
|
'@global': {
|
|
@@ -4633,7 +4633,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4633
4633
|
};
|
|
4634
4634
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4635
4635
|
};
|
|
4636
|
-
const getComponentCss$
|
|
4636
|
+
const getComponentCss$17 = (icon, iconSource, variant, hideLabel, disabled, loading, compact, theme) => {
|
|
4637
4637
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4638
4638
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4639
4639
|
const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
|
|
@@ -4697,9 +4697,9 @@ const cssVarSidebarEndWidth = '--p-canvas-sidebar-end-width';
|
|
|
4697
4697
|
const sidebarStartWidth = `var(${cssVarSidebarStartWidth},320px)`;
|
|
4698
4698
|
const sidebarEndWidth = `var(${cssVarSidebarEndWidth},320px)`;
|
|
4699
4699
|
// private css variables
|
|
4700
|
-
const cssVarColorPrimary = '--_a';
|
|
4701
|
-
const cssVarColorBackgroundBase = '--_b';
|
|
4702
|
-
const cssVarColorBackgroundSurface = '--_c';
|
|
4700
|
+
const cssVarColorPrimary$1 = '--_a';
|
|
4701
|
+
const cssVarColorBackgroundBase$1 = '--_b';
|
|
4702
|
+
const cssVarColorBackgroundSurface$1 = '--_c';
|
|
4703
4703
|
const cssVarColorContrastLow = '--_d';
|
|
4704
4704
|
const cssVarColorFooterGradient = '--_e';
|
|
4705
4705
|
const cssVarTemplateSidebarStartWidth = '--_f';
|
|
@@ -4709,7 +4709,7 @@ const mediaQueryS$1 = getMediaQueryMin('s');
|
|
|
4709
4709
|
const mediaQueryM = getMediaQueryMin('m');
|
|
4710
4710
|
// others
|
|
4711
4711
|
const spacingBase = gridGap.replace('36px', '24px');
|
|
4712
|
-
const getComponentCss$
|
|
4712
|
+
const getComponentCss$16 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
4713
4713
|
const { primaryColor, backgroundColor, backgroundSurfaceColor, contrastLowColor } = getThemedColors(theme);
|
|
4714
4714
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
4715
4715
|
return getCss({
|
|
@@ -4777,9 +4777,9 @@ const getComponentCss$14 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4777
4777
|
},
|
|
4778
4778
|
},
|
|
4779
4779
|
root: {
|
|
4780
|
-
[cssVarColorPrimary]: primaryColor,
|
|
4781
|
-
[cssVarColorBackgroundBase]: backgroundColor,
|
|
4782
|
-
[cssVarColorBackgroundSurface]: backgroundSurfaceColor,
|
|
4780
|
+
[cssVarColorPrimary$1]: primaryColor,
|
|
4781
|
+
[cssVarColorBackgroundBase$1]: backgroundColor,
|
|
4782
|
+
[cssVarColorBackgroundSurface$1]: backgroundSurfaceColor,
|
|
4783
4783
|
[cssVarColorContrastLow]: contrastLowColor,
|
|
4784
4784
|
[cssVarColorFooterGradient]: `0,0%,${isThemeDark(theme) ? '0%' : '100%'}`,
|
|
4785
4785
|
[cssVarTemplateSidebarStartWidth]: isSidebarStartOpen ? sidebarStartWidth : '0px',
|
|
@@ -4790,13 +4790,13 @@ const getComponentCss$14 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4790
4790
|
minWidth: '320px',
|
|
4791
4791
|
minHeight: '100dvh',
|
|
4792
4792
|
font: textSmallStyle.font,
|
|
4793
|
-
color: `var(${cssVarColorPrimary})`,
|
|
4794
|
-
background: `var(${cssVarColorBackgroundBase})`,
|
|
4793
|
+
color: `var(${cssVarColorPrimary$1})`,
|
|
4794
|
+
background: `var(${cssVarColorBackgroundBase$1})`,
|
|
4795
4795
|
transition: getTransition('grid-template-columns'),
|
|
4796
4796
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
4797
|
-
[cssVarColorPrimary]: primaryColorDark,
|
|
4798
|
-
[cssVarColorBackgroundBase]: backgroundColorDark,
|
|
4799
|
-
[cssVarColorBackgroundSurface]: backgroundSurfaceColorDark,
|
|
4797
|
+
[cssVarColorPrimary$1]: primaryColorDark,
|
|
4798
|
+
[cssVarColorBackgroundBase$1]: backgroundColorDark,
|
|
4799
|
+
[cssVarColorBackgroundSurface$1]: backgroundSurfaceColorDark,
|
|
4800
4800
|
[cssVarColorContrastLow]: contrastLowColorDark,
|
|
4801
4801
|
[cssVarColorFooterGradient]: '0,0%,0%',
|
|
4802
4802
|
}),
|
|
@@ -4814,7 +4814,7 @@ const getComponentCss$14 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4814
4814
|
zIndex: 2,
|
|
4815
4815
|
gridArea: '1/2/-1/3',
|
|
4816
4816
|
boxShadow: `1px 0 0 0 var(${cssVarColorContrastLow})`,
|
|
4817
|
-
background: `var(${cssVarColorBackgroundBase})`,
|
|
4817
|
+
background: `var(${cssVarColorBackgroundBase$1})`,
|
|
4818
4818
|
pointerEvents: 'none',
|
|
4819
4819
|
},
|
|
4820
4820
|
},
|
|
@@ -4954,7 +4954,7 @@ const getComponentCss$14 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4954
4954
|
gridArea: 'sidebar-start',
|
|
4955
4955
|
justifySelf: 'flex-end',
|
|
4956
4956
|
width: sidebarStartWidth,
|
|
4957
|
-
backgroundColor: `var(${cssVarColorBackgroundSurface})`,
|
|
4957
|
+
backgroundColor: `var(${cssVarColorBackgroundSurface$1})`,
|
|
4958
4958
|
'&::before': {
|
|
4959
4959
|
content: '""',
|
|
4960
4960
|
zIndex: -1,
|
|
@@ -4966,7 +4966,7 @@ const getComponentCss$14 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4966
4966
|
pointerEvents: 'none',
|
|
4967
4967
|
top: 0,
|
|
4968
4968
|
borderTopLeftRadius: '16px',
|
|
4969
|
-
boxShadow: `0 -16px 0 0 var(${cssVarColorBackgroundSurface})`,
|
|
4969
|
+
boxShadow: `0 -16px 0 0 var(${cssVarColorBackgroundSurface$1})`,
|
|
4970
4970
|
},
|
|
4971
4971
|
},
|
|
4972
4972
|
'&--end': {
|
|
@@ -4974,7 +4974,7 @@ const getComponentCss$14 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4974
4974
|
gridArea: 'sidebar-end',
|
|
4975
4975
|
justifySelf: 'flex-end',
|
|
4976
4976
|
width: sidebarEndWidth,
|
|
4977
|
-
backgroundColor: `var(${cssVarColorBackgroundBase})`,
|
|
4977
|
+
backgroundColor: `var(${cssVarColorBackgroundBase$1})`,
|
|
4978
4978
|
},
|
|
4979
4979
|
'&__scroller': {
|
|
4980
4980
|
position: 'absolute',
|
|
@@ -4996,13 +4996,13 @@ const getComponentCss$14 = (theme, isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4996
4996
|
'&--start': {
|
|
4997
4997
|
justifyContent: 'flex-start',
|
|
4998
4998
|
'&::before': {
|
|
4999
|
-
background: `linear-gradient(180deg,var(${cssVarColorBackgroundSurface}) 0%,var(${cssVarColorBackgroundSurface}) 65%,transparent 100%)`,
|
|
4999
|
+
background: `linear-gradient(180deg,var(${cssVarColorBackgroundSurface$1}) 0%,var(${cssVarColorBackgroundSurface$1}) 65%,transparent 100%)`,
|
|
5000
5000
|
},
|
|
5001
5001
|
},
|
|
5002
5002
|
'&--end': {
|
|
5003
5003
|
justifyContent: 'space-between',
|
|
5004
5004
|
'&::before': {
|
|
5005
|
-
background: `linear-gradient(180deg,var(${cssVarColorBackgroundBase}) 0%,var(${cssVarColorBackgroundBase}) 65%,transparent 100%)`,
|
|
5005
|
+
background: `linear-gradient(180deg,var(${cssVarColorBackgroundBase$1}) 0%,var(${cssVarColorBackgroundBase$1}) 65%,transparent 100%)`,
|
|
5006
5006
|
},
|
|
5007
5007
|
},
|
|
5008
5008
|
'&::before': {
|
|
@@ -5085,7 +5085,7 @@ const getGradient$1 = (theme, gradientColorTheme) => {
|
|
|
5085
5085
|
`rgba(${gradientColor},0.3) 68%,` +
|
|
5086
5086
|
`rgba(${gradientColor},0)`);
|
|
5087
5087
|
};
|
|
5088
|
-
const getComponentCss$
|
|
5088
|
+
const getComponentCss$15 = (gradientColor, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, theme, hasNavigation, alignControls) => {
|
|
5089
5089
|
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
5090
5090
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
5091
5091
|
const { canvasTextColor } = getHighContrastColors();
|
|
@@ -5466,14 +5466,14 @@ const getSlottedCheckboxRadioButtonStyles = (state, isDisabled, isLoading, theme
|
|
|
5466
5466
|
};
|
|
5467
5467
|
};
|
|
5468
5468
|
|
|
5469
|
-
const getInlineSVGBackgroundImage = (path) => {
|
|
5470
|
-
return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
|
|
5471
|
-
};
|
|
5472
|
-
|
|
5473
5469
|
const escapeHashCharacter = (colorString) => {
|
|
5474
5470
|
return colorString.replace('#', '%23');
|
|
5475
5471
|
};
|
|
5476
5472
|
|
|
5473
|
+
const getInlineSVGBackgroundImage = (path) => {
|
|
5474
|
+
return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
|
|
5475
|
+
};
|
|
5476
|
+
|
|
5477
5477
|
const getFunctionalComponentRequiredStyles = () => {
|
|
5478
5478
|
return {
|
|
5479
5479
|
required: {
|
|
@@ -5539,7 +5539,7 @@ const getCheckedSVGBackgroundImage$2 = (fill) => {
|
|
|
5539
5539
|
const getIndeterminateSVGBackgroundImage$1 = (fill) => {
|
|
5540
5540
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5541
5541
|
};
|
|
5542
|
-
const getComponentCss$
|
|
5542
|
+
const getComponentCss$14 = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
5543
5543
|
const checkedIconColor = escapeHashCharacter(getInvertedThemedColors(theme).primaryColor);
|
|
5544
5544
|
const checkedIconColorDark = escapeHashCharacter(getInvertedThemedColors('dark').primaryColor);
|
|
5545
5545
|
const indeterminateIconColor = escapeHashCharacter(getThemedColors(theme).primaryColor);
|
|
@@ -5642,7 +5642,7 @@ const getIndeterminateSVGBackgroundImage = (fill) => {
|
|
|
5642
5642
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5643
5643
|
};
|
|
5644
5644
|
const cssVarInternalCheckboxScaling = '--p-internal-checkbox-scaling';
|
|
5645
|
-
const getComponentCss$
|
|
5645
|
+
const getComponentCss$13 = (hideLabel, state, isDisabled, isLoading, compact, theme) => {
|
|
5646
5646
|
const { primaryColor, contrastMediumColor, contrastHighColor, disabledColor, focusColor } = getThemedColors(theme);
|
|
5647
5647
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, disabledColor: disabledColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
5648
5648
|
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
@@ -5883,7 +5883,7 @@ const widthMap = {
|
|
|
5883
5883
|
basic: gridBasicOffset,
|
|
5884
5884
|
extended: gridExtendedOffset,
|
|
5885
5885
|
};
|
|
5886
|
-
const getComponentCss$
|
|
5886
|
+
const getComponentCss$12 = (width) => {
|
|
5887
5887
|
return getCss({
|
|
5888
5888
|
'@global': {
|
|
5889
5889
|
':host': {
|
|
@@ -5925,7 +5925,7 @@ const getDimensionStyle = {
|
|
|
5925
5925
|
width: 'inherit',
|
|
5926
5926
|
height: 'inherit',
|
|
5927
5927
|
};
|
|
5928
|
-
const getComponentCss
|
|
5928
|
+
const getComponentCss$11 = () => {
|
|
5929
5929
|
return getCss({
|
|
5930
5930
|
'@global': {
|
|
5931
5931
|
':host': {
|
|
@@ -6024,7 +6024,7 @@ const sizeMap$4 = {
|
|
|
6024
6024
|
medium: fontSizeDisplayMedium,
|
|
6025
6025
|
large: fontSizeDisplayLarge,
|
|
6026
6026
|
};
|
|
6027
|
-
const getComponentCss$
|
|
6027
|
+
const getComponentCss$10 = (size, align, color, ellipsis, theme) => {
|
|
6028
6028
|
return getCss({
|
|
6029
6029
|
'@global': {
|
|
6030
6030
|
':host': {
|
|
@@ -6042,7 +6042,7 @@ const getComponentCss$_ = (size, align, color, ellipsis, theme) => {
|
|
|
6042
6042
|
});
|
|
6043
6043
|
};
|
|
6044
6044
|
|
|
6045
|
-
const getComponentCss
|
|
6045
|
+
const getComponentCss$$ = (color, orientation, theme) => {
|
|
6046
6046
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
6047
6047
|
const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
|
|
6048
6048
|
const colorMap = {
|
|
@@ -6085,133 +6085,15 @@ const getComponentCss$Z = (color, orientation, theme) => {
|
|
|
6085
6085
|
});
|
|
6086
6086
|
};
|
|
6087
6087
|
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
},
|
|
6098
|
-
...preventFoucOfNestedElementsStyles,
|
|
6099
|
-
fieldset: {
|
|
6100
|
-
margin: 0,
|
|
6101
|
-
padding: 0,
|
|
6102
|
-
border: 'none',
|
|
6103
|
-
},
|
|
6104
|
-
...(hasLabel && {
|
|
6105
|
-
legend: {
|
|
6106
|
-
margin: `0 0 ${spacingStaticMedium}`,
|
|
6107
|
-
padding: 0,
|
|
6108
|
-
color: getThemedColors(theme).primaryColor,
|
|
6109
|
-
...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
|
|
6110
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6111
|
-
color: getThemedColors('dark').primaryColor,
|
|
6112
|
-
}),
|
|
6113
|
-
},
|
|
6114
|
-
}),
|
|
6115
|
-
},
|
|
6116
|
-
...getFunctionalComponentRequiredStyles(),
|
|
6117
|
-
...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
|
|
6118
|
-
message: {
|
|
6119
|
-
marginTop: spacingStaticMedium,
|
|
6120
|
-
},
|
|
6121
|
-
}),
|
|
6122
|
-
});
|
|
6123
|
-
};
|
|
6124
|
-
|
|
6125
|
-
const getComponentCss$X = (state, labelSize, hasLabel, theme) => {
|
|
6126
|
-
return getCss({
|
|
6127
|
-
'@global': {
|
|
6128
|
-
':host': {
|
|
6129
|
-
display: 'block',
|
|
6130
|
-
...addImportantToEachRule({
|
|
6131
|
-
...colorSchemeStyles,
|
|
6132
|
-
...hostHiddenStyles,
|
|
6133
|
-
}),
|
|
6134
|
-
},
|
|
6135
|
-
...preventFoucOfNestedElementsStyles,
|
|
6136
|
-
fieldset: {
|
|
6137
|
-
margin: 0,
|
|
6138
|
-
padding: 0,
|
|
6139
|
-
border: 'none',
|
|
6140
|
-
},
|
|
6141
|
-
...(hasLabel && {
|
|
6142
|
-
legend: {
|
|
6143
|
-
margin: `0 0 ${spacingStaticMedium}`,
|
|
6144
|
-
padding: 0,
|
|
6145
|
-
color: getThemedColors(theme).primaryColor,
|
|
6146
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6147
|
-
color: getThemedColors('dark').primaryColor,
|
|
6148
|
-
}),
|
|
6149
|
-
...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
|
|
6150
|
-
},
|
|
6151
|
-
}),
|
|
6152
|
-
},
|
|
6153
|
-
...getFunctionalComponentRequiredStyles(),
|
|
6154
|
-
...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
|
|
6155
|
-
message: {
|
|
6156
|
-
marginTop: spacingStaticMedium,
|
|
6157
|
-
},
|
|
6158
|
-
}),
|
|
6159
|
-
});
|
|
6160
|
-
};
|
|
6161
|
-
|
|
6162
|
-
const flexItemWidths = {
|
|
6163
|
-
none: 0,
|
|
6164
|
-
'one-quarter': 25,
|
|
6165
|
-
'one-third': 33.333333,
|
|
6166
|
-
half: 50,
|
|
6167
|
-
'two-thirds': 66.666667,
|
|
6168
|
-
'three-quarters': 75,
|
|
6169
|
-
full: 100,
|
|
6170
|
-
auto: 'auto',
|
|
6171
|
-
};
|
|
6172
|
-
const getComponentCss$W = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
6173
|
-
return getCss({
|
|
6174
|
-
'@global': {
|
|
6175
|
-
':host': addImportantToEachRule({
|
|
6176
|
-
boxSizing: 'border-box',
|
|
6177
|
-
...hostHiddenStyles,
|
|
6178
|
-
...mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
|
|
6179
|
-
width: `${flexItemWidths[widthResponsive]}%`,
|
|
6180
|
-
})), buildResponsiveStyles(offset, (offsetResponsive) => ({
|
|
6181
|
-
marginLeft: `${flexItemWidths[offsetResponsive]}%`,
|
|
6182
|
-
})), buildResponsiveStyles(alignSelf, (alignSelfResponsive) => ({
|
|
6183
|
-
alignSelf: alignSelfResponsive,
|
|
6184
|
-
})), flex !== 'initial' // flex shorthand conflicts with grow and shrink, which means even default grow or shrink props would override flex
|
|
6185
|
-
? buildResponsiveStyles(flex, (flexResponsive) => ({
|
|
6186
|
-
flex: flexResponsive === 'equal' ? '1 1 0' : flexResponsive,
|
|
6187
|
-
}))
|
|
6188
|
-
: mergeDeep(buildResponsiveStyles(grow, (flexGrow) => ({ flexGrow })), buildResponsiveStyles(shrink, (flexShrink) => ({ flexShrink })))),
|
|
6189
|
-
}),
|
|
6190
|
-
},
|
|
6191
|
-
});
|
|
6192
|
-
};
|
|
6193
|
-
|
|
6194
|
-
const getComponentCss$V = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
6195
|
-
return getCss({
|
|
6196
|
-
'@global': {
|
|
6197
|
-
':host': {
|
|
6198
|
-
...buildResponsiveStyles(inline, (inlineResponsive) => ({
|
|
6199
|
-
display: inlineResponsive ? 'inline-flex' : 'flex',
|
|
6200
|
-
})),
|
|
6201
|
-
...addImportantToEachRule(mergeDeep(colorSchemeStyles, hostHiddenStyles, buildResponsiveStyles(wrap, (flexWrapResponsive) => ({ flexWrap: flexWrapResponsive })), buildResponsiveStyles(direction, (flexDirectionResponsive) => ({
|
|
6202
|
-
flexDirection: flexDirectionResponsive,
|
|
6203
|
-
})), buildResponsiveStyles(justifyContent, (justifyContentResponsive) => ({
|
|
6204
|
-
justifyContent: justifyContentResponsive,
|
|
6205
|
-
})), buildResponsiveStyles(alignItems, (alignItemsResponsive) => ({
|
|
6206
|
-
alignItems: alignItemsResponsive,
|
|
6207
|
-
})), buildResponsiveStyles(alignContent, (alignContentResponsive) => ({
|
|
6208
|
-
alignContent: alignContentResponsive,
|
|
6209
|
-
})))),
|
|
6210
|
-
},
|
|
6211
|
-
},
|
|
6212
|
-
});
|
|
6213
|
-
};
|
|
6214
|
-
|
|
6088
|
+
// public css variables
|
|
6089
|
+
const cssVariableGridTemplate = '--p-drilldown-grid-template';
|
|
6090
|
+
const cssVariableGap = '--p-drilldown-gap';
|
|
6091
|
+
// private css variables
|
|
6092
|
+
const cssVarColorPrimary = '--_p-a';
|
|
6093
|
+
const cssVarColorBackgroundBase = '--_p-b';
|
|
6094
|
+
const cssVarColorBackgroundSurface = '--_p-c';
|
|
6095
|
+
const cssVarColorBackgroundShading = '--_p-d';
|
|
6096
|
+
const cssVarColorBackgroundScroller = '--_p-f';
|
|
6215
6097
|
const scrollerWidthDesktop = 'clamp(338px, 210px + 18vw, 640px)';
|
|
6216
6098
|
const mediaQueryMobile = getMediaQueryMax('s');
|
|
6217
6099
|
const mediaQueryDesktop = getMediaQueryMin('s');
|
|
@@ -6221,15 +6103,9 @@ const easingOpen = 'in';
|
|
|
6221
6103
|
const dialogDurationClose = 'short';
|
|
6222
6104
|
const backdropDurationClose = 'moderate';
|
|
6223
6105
|
const easingClose = 'out';
|
|
6224
|
-
|
|
6225
|
-
const
|
|
6226
|
-
|
|
6227
|
-
dark: 'rgba(0,0,0,.01)',
|
|
6228
|
-
auto: 'rgba(255,255,255,.01)',
|
|
6229
|
-
};
|
|
6230
|
-
const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme) => {
|
|
6231
|
-
const { backgroundColor, backgroundSurfaceColor, backgroundShadingColor } = getThemedColors(theme);
|
|
6232
|
-
const { backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, backgroundShadingColor: backgroundShadingColorDark, } = getThemedColors('dark');
|
|
6106
|
+
const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible, theme) => {
|
|
6107
|
+
const { primaryColor, backgroundColor, backgroundSurfaceColor, backgroundShadingColor } = getThemedColors(theme);
|
|
6108
|
+
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, backgroundShadingColor: backgroundShadingColorDark, } = getThemedColors('dark');
|
|
6233
6109
|
return getCss({
|
|
6234
6110
|
'@global': {
|
|
6235
6111
|
'@keyframes slide-up-mobile': {
|
|
@@ -6246,11 +6122,27 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6246
6122
|
':host': {
|
|
6247
6123
|
display: 'block',
|
|
6248
6124
|
...addImportantToEachRule({
|
|
6125
|
+
[cssVarColorPrimary]: primaryColor,
|
|
6126
|
+
[cssVarColorBackgroundBase]: backgroundColor,
|
|
6127
|
+
[cssVarColorBackgroundSurface]: backgroundSurfaceColor,
|
|
6128
|
+
[cssVarColorBackgroundShading]: backgroundShadingColor,
|
|
6129
|
+
[cssVarColorBackgroundScroller]: theme === 'dark' ? 'rgba(0,0,0,.01)' : 'rgba(255,255,255,.01)', // ensures that the scrollbar color is mostly set correctly
|
|
6249
6130
|
...colorSchemeStyles,
|
|
6250
6131
|
...hostHiddenStyles,
|
|
6132
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6133
|
+
[cssVarColorPrimary]: primaryColorDark,
|
|
6134
|
+
[cssVarColorBackgroundBase]: backgroundColorDark,
|
|
6135
|
+
[cssVarColorBackgroundSurface]: backgroundSurfaceColorDark,
|
|
6136
|
+
[cssVarColorBackgroundShading]: backgroundShadingColorDark,
|
|
6137
|
+
[cssVarColorBackgroundScroller]: 'rgba(0,0,0,.01)', // ensures that the scrollbar color is mostly set correctly
|
|
6138
|
+
}),
|
|
6251
6139
|
}),
|
|
6252
6140
|
},
|
|
6253
6141
|
...preventFoucOfNestedElementsStyles,
|
|
6142
|
+
'::slotted(*)': {
|
|
6143
|
+
[cssVariableGridTemplate]: 'auto/auto', // reset css variable to prevent inheritance
|
|
6144
|
+
[cssVariableGap]: spacingFluidXSmall, // reset css variable to prevent inheritance
|
|
6145
|
+
},
|
|
6254
6146
|
dialog: {
|
|
6255
6147
|
all: 'unset',
|
|
6256
6148
|
position: 'fixed',
|
|
@@ -6261,11 +6153,8 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6261
6153
|
? {
|
|
6262
6154
|
visibility: 'inherit',
|
|
6263
6155
|
...frostedGlassStyle,
|
|
6264
|
-
background:
|
|
6156
|
+
background: `var(${cssVarColorBackgroundShading})`,
|
|
6265
6157
|
transition: `${getTransition('background', backdropDurationOpen, easingOpen)}, ${getTransition('backdrop-filter', backdropDurationOpen, easingOpen)}, ${getTransition('-webkit-backdrop-filter', backdropDurationOpen, easingOpen)}`,
|
|
6266
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6267
|
-
background: backgroundShadingColorDark,
|
|
6268
|
-
}),
|
|
6269
6158
|
}
|
|
6270
6159
|
: {
|
|
6271
6160
|
visibility: 'hidden',
|
|
@@ -6279,11 +6168,15 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6279
6168
|
[mediaQueryMobile]: {
|
|
6280
6169
|
display: 'contents',
|
|
6281
6170
|
...(!isSecondaryScrollerVisible && {
|
|
6282
|
-
zIndex: 0,
|
|
6283
|
-
display: 'flex',
|
|
6284
|
-
flexDirection: 'column',
|
|
6285
|
-
gap: spacingFluidXSmall,
|
|
6286
6171
|
gridArea: '4/2/auto/-2',
|
|
6172
|
+
zIndex: 0,
|
|
6173
|
+
display: 'grid',
|
|
6174
|
+
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6175
|
+
gap: `var(${cssVariableGap},${spacingFluidXSmall})`,
|
|
6176
|
+
alignContent: 'start',
|
|
6177
|
+
alignItems: 'start',
|
|
6178
|
+
boxSizing: 'border-box',
|
|
6179
|
+
minHeight: '100%',
|
|
6287
6180
|
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6288
6181
|
paddingBlockEnd: spacingFluidLarge,
|
|
6289
6182
|
...(isPrimary && {
|
|
@@ -6292,30 +6185,34 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6292
6185
|
}),
|
|
6293
6186
|
},
|
|
6294
6187
|
[mediaQueryDesktop]: {
|
|
6295
|
-
display: 'flex',
|
|
6296
|
-
flexDirection: 'column',
|
|
6297
|
-
gap: isPrimary ? spacingFluidXSmall : spacingFluidMedium,
|
|
6298
|
-
gridArea: '2/2/auto/-2',
|
|
6299
|
-
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6300
|
-
paddingBlockEnd: spacingFluidLarge,
|
|
6301
6188
|
...(isPrimary && {
|
|
6189
|
+
gridArea: '3/2/auto/-2',
|
|
6190
|
+
display: 'grid',
|
|
6191
|
+
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6192
|
+
gap: `var(${cssVariableGap},${isPrimary ? spacingFluidXSmall : spacingFluidMedium})`,
|
|
6193
|
+
alignContent: 'start',
|
|
6194
|
+
alignItems: 'start',
|
|
6195
|
+
boxSizing: 'border-box',
|
|
6196
|
+
minHeight: '100%',
|
|
6197
|
+
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6198
|
+
paddingBlockEnd: spacingFluidLarge,
|
|
6302
6199
|
animation: getAnimation('slide-up-desktop', 'moderate', 'base'),
|
|
6303
6200
|
}),
|
|
6304
6201
|
},
|
|
6305
6202
|
},
|
|
6306
6203
|
...(isSecondaryScrollerVisible && {
|
|
6307
6204
|
'::slotted(*:not([primary],[secondary],[cascade]))': {
|
|
6308
|
-
[mediaQueryMobile]: {
|
|
6205
|
+
[mediaQueryMobile]: addImportantToEachRule({
|
|
6309
6206
|
display: 'none',
|
|
6310
|
-
},
|
|
6207
|
+
}),
|
|
6311
6208
|
},
|
|
6312
|
-
'::slotted(*:not([primary],[cascade]))': {
|
|
6209
|
+
'::slotted(*:not([primary],[cascade]))': addImportantToEachRule({
|
|
6313
6210
|
[mediaQueryDesktop]: {
|
|
6314
6211
|
...(!isPrimary && {
|
|
6315
6212
|
display: 'none',
|
|
6316
6213
|
}),
|
|
6317
6214
|
},
|
|
6318
|
-
},
|
|
6215
|
+
}),
|
|
6319
6216
|
}),
|
|
6320
6217
|
},
|
|
6321
6218
|
drawer: {
|
|
@@ -6338,28 +6235,16 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6338
6235
|
}),
|
|
6339
6236
|
[mediaQueryMobile]: {
|
|
6340
6237
|
gridTemplate: `${spacingFluidMedium} auto ${spacingFluidLarge} minmax(0, 1fr)/${spacingFluidLarge} auto minmax(0, 1fr) auto ${spacingFluidLarge}`,
|
|
6341
|
-
background:
|
|
6342
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6343
|
-
background: backgroundColorDark,
|
|
6344
|
-
}),
|
|
6238
|
+
background: `var(${cssVarColorBackgroundBase})`,
|
|
6345
6239
|
},
|
|
6346
6240
|
[mediaQueryDesktop]: {
|
|
6347
6241
|
width: isSecondaryScrollerVisible ? `calc(${scrollerWidthDesktop} * 2)` : scrollerWidthDesktop,
|
|
6348
|
-
gridTemplate: `${spacingFluidMedium} minmax(0, 1fr)/repeat(${isSecondaryScrollerVisible ? 2 : 1}, ${spacingFluidLarge} minmax(0, 1fr) ${spacingFluidLarge})`,
|
|
6349
|
-
background:
|
|
6350
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6351
|
-
background: backgroundColorDark,
|
|
6352
|
-
}),
|
|
6242
|
+
gridTemplate: `${spacingFluidMedium} auto minmax(0, 1fr)/repeat(${isSecondaryScrollerVisible ? 2 : 1}, ${spacingFluidLarge} minmax(0, 1fr) ${spacingFluidLarge})`,
|
|
6243
|
+
background: `var(${cssVarColorBackgroundBase})`,
|
|
6353
6244
|
...(isSecondaryScrollerVisible && {
|
|
6354
|
-
background: `linear-gradient(90deg
|
|
6355
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6356
|
-
background: `linear-gradient(90deg,${backgroundColorDark} 0%,${backgroundColorDark} 50%,${backgroundSurfaceColorDark} 50%,${backgroundSurfaceColorDark} 100%)`,
|
|
6357
|
-
}),
|
|
6245
|
+
background: `linear-gradient(90deg,var(${cssVarColorBackgroundBase}) 0%,var(${cssVarColorBackgroundBase}) 50%,var(${cssVarColorBackgroundSurface}) 50%,var(${cssVarColorBackgroundSurface}) 100%)`,
|
|
6358
6246
|
'&:dir(rtl)': {
|
|
6359
|
-
background: `linear-gradient(90deg
|
|
6360
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6361
|
-
background: `linear-gradient(90deg,${backgroundSurfaceColorDark} 0%,${backgroundSurfaceColorDark} 50%,${backgroundColorDark} 50%,${backgroundColorDark} 100%)`,
|
|
6362
|
-
}),
|
|
6247
|
+
background: `linear-gradient(90deg,var(${cssVarColorBackgroundSurface}) 0%,var(${cssVarColorBackgroundSurface}) 50%,var(${cssVarColorBackgroundBase}) 50%,var(${cssVarColorBackgroundBase}) 100%)`,
|
|
6363
6248
|
},
|
|
6364
6249
|
}),
|
|
6365
6250
|
},
|
|
@@ -6373,33 +6258,21 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6373
6258
|
'&::before': {
|
|
6374
6259
|
[mediaQueryMobile]: {
|
|
6375
6260
|
gridArea: '1/1/-1/-1',
|
|
6376
|
-
background:
|
|
6377
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6378
|
-
background: backgroundColorDark,
|
|
6379
|
-
}),
|
|
6261
|
+
background: `var(${cssVarColorBackgroundBase})`,
|
|
6380
6262
|
},
|
|
6381
6263
|
[mediaQueryDesktop]: {
|
|
6382
6264
|
gridArea: '1/1/-1/4',
|
|
6383
|
-
background:
|
|
6384
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6385
|
-
background: backgroundColorDark,
|
|
6386
|
-
}),
|
|
6265
|
+
background: `var(${cssVarColorBackgroundBase})`,
|
|
6387
6266
|
},
|
|
6388
6267
|
},
|
|
6389
6268
|
'&::after': {
|
|
6390
6269
|
[mediaQueryMobile]: {
|
|
6391
6270
|
gridArea: '1/1/-1/-1',
|
|
6392
|
-
background:
|
|
6393
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6394
|
-
background: backgroundColorDark,
|
|
6395
|
-
}),
|
|
6271
|
+
background: `var(${cssVarColorBackgroundBase})`,
|
|
6396
6272
|
},
|
|
6397
6273
|
[mediaQueryDesktop]: {
|
|
6398
6274
|
gridArea: '1/4/-1/-1',
|
|
6399
|
-
background:
|
|
6400
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6401
|
-
background: backgroundSurfaceColorDark,
|
|
6402
|
-
}),
|
|
6275
|
+
background: `var(${cssVarColorBackgroundSurface})`,
|
|
6403
6276
|
},
|
|
6404
6277
|
},
|
|
6405
6278
|
},
|
|
@@ -6409,10 +6282,7 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6409
6282
|
// scrollBehavior: 'smooth', // when defined, `.scrollTo()` isn't applied immediately
|
|
6410
6283
|
// overscrollBehaviorY: 'none', // when defined, rubber band scroll effect is getting lost on iOS Safari
|
|
6411
6284
|
// WebkitOverflowScrolling: 'touch', // when defined, secondary scroller might not be show in iOS Safari on iPhone only
|
|
6412
|
-
background:
|
|
6413
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6414
|
-
background: scrollerBackground.dark,
|
|
6415
|
-
}),
|
|
6285
|
+
background: `var(${cssVarColorBackgroundScroller})`,
|
|
6416
6286
|
[mediaQueryMobile]: {
|
|
6417
6287
|
...(!isSecondaryScrollerVisible && {
|
|
6418
6288
|
gridArea: '1/1/-1/-1',
|
|
@@ -6425,10 +6295,7 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6425
6295
|
top: 0,
|
|
6426
6296
|
gridArea: '1/1/4/-1',
|
|
6427
6297
|
zIndex: 1,
|
|
6428
|
-
background: `linear-gradient(180deg
|
|
6429
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6430
|
-
background: `linear-gradient(180deg,${backgroundColorDark} 0%,${backgroundColorDark} 65%,transparent 100%)`,
|
|
6431
|
-
}),
|
|
6298
|
+
background: `linear-gradient(180deg,var(${cssVarColorBackgroundBase}) 0%,var(${cssVarColorBackgroundBase}) 65%,transparent 100%)`,
|
|
6432
6299
|
},
|
|
6433
6300
|
}),
|
|
6434
6301
|
},
|
|
@@ -6444,7 +6311,7 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6444
6311
|
...dismissButtonJssStyle,
|
|
6445
6312
|
width: 'fit-content',
|
|
6446
6313
|
height: 'fit-content',
|
|
6447
|
-
placeSelf: '
|
|
6314
|
+
placeSelf: 'start end',
|
|
6448
6315
|
gridArea: '2/4',
|
|
6449
6316
|
zIndex: 3, // ensures dismiss button is on top of opacity animation handled by ::before/::after
|
|
6450
6317
|
marginInlineEnd: '-1px', // improve visual alignment and compensate white space of close icon
|
|
@@ -6467,13 +6334,15 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6467
6334
|
},
|
|
6468
6335
|
back: {
|
|
6469
6336
|
display: 'none',
|
|
6470
|
-
...(isSecondaryScrollerVisible &&
|
|
6337
|
+
...(isSecondaryScrollerVisible &&
|
|
6338
|
+
isPrimary && {
|
|
6471
6339
|
[mediaQueryMobile]: {
|
|
6472
6340
|
display: 'block',
|
|
6341
|
+
marginTop: '2px', // compensate negative margin of ::pseudo background of button-pure
|
|
6473
6342
|
gridArea: '2/2',
|
|
6474
6343
|
width: 'fit-content',
|
|
6475
6344
|
height: 'fit-content',
|
|
6476
|
-
placeSelf: '
|
|
6345
|
+
placeSelf: 'start',
|
|
6477
6346
|
zIndex: 2,
|
|
6478
6347
|
},
|
|
6479
6348
|
}),
|
|
@@ -6481,9 +6350,7 @@ const getComponentCss$U = (isOpen, isPrimary, isSecondaryScrollerVisible, theme)
|
|
|
6481
6350
|
});
|
|
6482
6351
|
};
|
|
6483
6352
|
|
|
6484
|
-
const getComponentCss$
|
|
6485
|
-
const { primaryColor, backgroundColor } = getThemedColors(theme);
|
|
6486
|
-
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark } = getThemedColors('dark');
|
|
6353
|
+
const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
6487
6354
|
return getCss({
|
|
6488
6355
|
'@global': {
|
|
6489
6356
|
'@keyframes slide-up-mobile': {
|
|
@@ -6505,38 +6372,72 @@ const getComponentCss$T = (isPrimary, isSecondary, isCascade, theme) => {
|
|
|
6505
6372
|
...hostHiddenStyles,
|
|
6506
6373
|
}),
|
|
6507
6374
|
},
|
|
6375
|
+
...preventFoucOfNestedElementsStyles,
|
|
6508
6376
|
slot: {
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6377
|
+
'&[name="header"]': {
|
|
6378
|
+
display: 'none',
|
|
6379
|
+
[mediaQueryMobile]: {
|
|
6380
|
+
...(isSecondary && {
|
|
6381
|
+
gridArea: '2/3',
|
|
6382
|
+
display: 'grid',
|
|
6383
|
+
placeItems: 'center',
|
|
6384
|
+
zIndex: 2,
|
|
6385
|
+
}),
|
|
6386
|
+
},
|
|
6387
|
+
},
|
|
6388
|
+
'&[name="button"]': {
|
|
6521
6389
|
...((isPrimary || isCascade) && {
|
|
6522
|
-
display: '
|
|
6390
|
+
display: 'none',
|
|
6523
6391
|
}),
|
|
6392
|
+
[mediaQueryMobile]: {
|
|
6393
|
+
...(isSecondary && {
|
|
6394
|
+
display: 'none',
|
|
6395
|
+
}),
|
|
6396
|
+
},
|
|
6524
6397
|
},
|
|
6525
|
-
[
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6398
|
+
'&:not([name])': {
|
|
6399
|
+
display: 'none',
|
|
6400
|
+
[mediaQueryMobile]: {
|
|
6401
|
+
...(isSecondary && {
|
|
6402
|
+
gridArea: '4/2/auto/-2',
|
|
6403
|
+
zIndex: 0,
|
|
6404
|
+
display: 'grid',
|
|
6405
|
+
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6406
|
+
gap: `var(${cssVariableGap},${spacingFluidXSmall})`,
|
|
6407
|
+
alignContent: 'start',
|
|
6408
|
+
alignItems: 'start',
|
|
6409
|
+
boxSizing: 'border-box',
|
|
6410
|
+
minHeight: '100%',
|
|
6411
|
+
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6412
|
+
paddingBlockEnd: spacingFluidLarge,
|
|
6413
|
+
animation: getAnimation('slide-up-mobile', 'moderate', 'base'),
|
|
6414
|
+
}),
|
|
6415
|
+
...((isPrimary || isCascade) && {
|
|
6416
|
+
display: 'contents',
|
|
6417
|
+
}),
|
|
6418
|
+
},
|
|
6419
|
+
[mediaQueryDesktop]: {
|
|
6420
|
+
...((isPrimary || isSecondary) && {
|
|
6421
|
+
gridArea: '3/2/auto/-2',
|
|
6422
|
+
display: 'grid',
|
|
6423
|
+
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6424
|
+
gap: `var(${cssVariableGap},${spacingFluidXSmall})`,
|
|
6425
|
+
alignContent: 'start',
|
|
6426
|
+
alignItems: 'start',
|
|
6427
|
+
boxSizing: 'border-box',
|
|
6428
|
+
minHeight: '100%',
|
|
6429
|
+
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6430
|
+
paddingBlockEnd: spacingFluidLarge,
|
|
6431
|
+
animation: getAnimation(`slide-up-desktop-${isPrimary ? 'primary' : 'secondary'}`, 'moderate', 'base'),
|
|
6432
|
+
}),
|
|
6433
|
+
...(isSecondary && {
|
|
6434
|
+
gridArea: '2/2/auto/-2',
|
|
6435
|
+
paddingBlockEnd: spacingFluidLarge,
|
|
6436
|
+
}),
|
|
6437
|
+
...(isCascade && {
|
|
6438
|
+
display: 'contents',
|
|
6439
|
+
}),
|
|
6440
|
+
},
|
|
6540
6441
|
},
|
|
6541
6442
|
},
|
|
6542
6443
|
h2: {
|
|
@@ -6555,54 +6456,27 @@ const getComponentCss$T = (isPrimary, isSecondary, isCascade, theme) => {
|
|
|
6555
6456
|
whiteSpace: 'nowrap',
|
|
6556
6457
|
overflow: 'hidden',
|
|
6557
6458
|
textOverflow: 'ellipsis',
|
|
6558
|
-
color:
|
|
6559
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6560
|
-
color: primaryColorDark,
|
|
6561
|
-
}),
|
|
6459
|
+
color: `var(${cssVarColorPrimary})`, // enables color inheritance for slotted content
|
|
6562
6460
|
}),
|
|
6563
6461
|
},
|
|
6564
6462
|
},
|
|
6565
6463
|
// If cascade we need to hide all children which are not primary or another cascade (e.g. all siblings of the primary or cascade item)
|
|
6566
6464
|
...(isCascade && {
|
|
6567
|
-
'::slotted(*:not([primary],[cascade]))': {
|
|
6465
|
+
'::slotted(*:not([primary],[cascade]))': addImportantToEachRule({
|
|
6568
6466
|
display: 'none',
|
|
6569
|
-
},
|
|
6467
|
+
}),
|
|
6570
6468
|
}),
|
|
6571
6469
|
...(isPrimary && {
|
|
6572
|
-
'::slotted(*:not([secondary]))': {
|
|
6470
|
+
'::slotted(*:not([secondary]))': addImportantToEachRule({
|
|
6573
6471
|
[mediaQueryMobile]: {
|
|
6574
6472
|
display: 'none',
|
|
6575
6473
|
},
|
|
6576
|
-
},
|
|
6577
|
-
}),
|
|
6578
|
-
'::slotted': {
|
|
6579
|
-
'&(a)': {
|
|
6580
|
-
all: 'unset',
|
|
6581
|
-
alignSelf: 'flex-start',
|
|
6582
|
-
font: textMediumStyle.font,
|
|
6583
|
-
cursor: 'pointer',
|
|
6584
|
-
borderRadius: borderRadiusSmall,
|
|
6585
|
-
padding: addImportantToRule(spacingFluidSmall),
|
|
6586
|
-
marginInline: addImportantToRule(`calc(${spacingFluidSmall} * -1)`),
|
|
6587
|
-
color: primaryColor,
|
|
6588
|
-
textDecoration: 'underline',
|
|
6589
|
-
textDecorationColor: 'transparent',
|
|
6590
|
-
transition: `${getTransition('text-decoration-color')}`,
|
|
6591
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6592
|
-
color: primaryColorDark,
|
|
6593
|
-
}),
|
|
6594
|
-
},
|
|
6595
|
-
'&(a[aria-current])': {
|
|
6596
|
-
textDecoration: 'underline',
|
|
6597
|
-
},
|
|
6598
|
-
...hoverMediaQuery({
|
|
6599
|
-
'&(a:hover)': {
|
|
6600
|
-
textDecorationColor: 'inherit',
|
|
6601
|
-
},
|
|
6602
6474
|
}),
|
|
6603
|
-
|
|
6475
|
+
}),
|
|
6476
|
+
'::slotted(*)': {
|
|
6477
|
+
[cssVariableGridTemplate]: 'auto/auto', // reset css variable to prevent inheritance
|
|
6478
|
+
[cssVariableGap]: spacingFluidXSmall, // reset css variable to prevent inheritance
|
|
6604
6479
|
},
|
|
6605
|
-
...preventFoucOfNestedElementsStyles,
|
|
6606
6480
|
},
|
|
6607
6481
|
// drawer subgrid in combination with scroller grid ensures no content squeezing during slide up animation, potentially caused by scrollbar
|
|
6608
6482
|
drawer: {
|
|
@@ -6632,10 +6506,7 @@ const getComponentCss$T = (isPrimary, isSecondary, isCascade, theme) => {
|
|
|
6632
6506
|
// scrollBehavior: 'smooth', // when defined, `.scrollTo()` isn't applied immediately
|
|
6633
6507
|
// overscrollBehaviorY: 'none', // when defined, rubber band scroll effect is getting lost on iOS Safari
|
|
6634
6508
|
// WebkitOverflowScrolling: 'touch', // when defined, secondary scroller might not be show in iOS Safari on iPhone only
|
|
6635
|
-
background:
|
|
6636
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6637
|
-
background: scrollerBackground.dark,
|
|
6638
|
-
}),
|
|
6509
|
+
background: `var(${cssVarColorBackgroundScroller})`,
|
|
6639
6510
|
[mediaQueryMobile]: {
|
|
6640
6511
|
...(isSecondary && {
|
|
6641
6512
|
display: 'grid',
|
|
@@ -6648,10 +6519,7 @@ const getComponentCss$T = (isPrimary, isSecondary, isCascade, theme) => {
|
|
|
6648
6519
|
position: 'sticky',
|
|
6649
6520
|
top: 0,
|
|
6650
6521
|
gridArea: '1/1/4/-1',
|
|
6651
|
-
background: `linear-gradient(180deg
|
|
6652
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6653
|
-
background: `linear-gradient(180deg,${backgroundColorDark} 0%,${backgroundColorDark} 65%,transparent 100%)`,
|
|
6654
|
-
}),
|
|
6522
|
+
background: `linear-gradient(180deg,var(${cssVarColorBackgroundBase}) 0%,var(${cssVarColorBackgroundBase}) 65%,transparent 100%)`,
|
|
6655
6523
|
},
|
|
6656
6524
|
}),
|
|
6657
6525
|
...((isPrimary || isCascade) && {
|
|
@@ -6681,6 +6549,9 @@ const getComponentCss$T = (isPrimary, isSecondary, isCascade, theme) => {
|
|
|
6681
6549
|
},
|
|
6682
6550
|
...(!isPrimary &&
|
|
6683
6551
|
!isCascade && {
|
|
6552
|
+
// TODO: not sure if this is ideal, since the consumer won't be able to change it when used with a custom
|
|
6553
|
+
// grid-template, maybe <p-drilldown-button slot="button" /> would be an option, similar to <p-drilldown-link />
|
|
6554
|
+
gridColumn: '1/-1',
|
|
6684
6555
|
padding: spacingFluidSmall,
|
|
6685
6556
|
margin: `0 calc(${spacingFluidSmall} * -1)`,
|
|
6686
6557
|
}),
|
|
@@ -6692,12 +6563,15 @@ const getComponentCss$T = (isPrimary, isSecondary, isCascade, theme) => {
|
|
|
6692
6563
|
...(isPrimary && {
|
|
6693
6564
|
[mediaQueryMobile]: {
|
|
6694
6565
|
gridArea: '2/2',
|
|
6566
|
+
marginTop: '2px', // compensate negative margin of ::pseudo background of button-pure
|
|
6695
6567
|
width: 'fit-content',
|
|
6696
6568
|
height: 'fit-content',
|
|
6697
|
-
placeSelf: '
|
|
6569
|
+
placeSelf: 'start',
|
|
6698
6570
|
zIndex: 2,
|
|
6699
6571
|
},
|
|
6700
6572
|
[mediaQueryDesktop]: {
|
|
6573
|
+
gridArea: '2/2',
|
|
6574
|
+
marginBottom: spacingFluidMedium,
|
|
6701
6575
|
width: 'fit-content',
|
|
6702
6576
|
height: 'fit-content',
|
|
6703
6577
|
marginInlineStart: '-4px', // improve visual alignment and compensate white space of arrow-left icon
|
|
@@ -6707,6 +6581,185 @@ const getComponentCss$T = (isPrimary, isSecondary, isCascade, theme) => {
|
|
|
6707
6581
|
});
|
|
6708
6582
|
};
|
|
6709
6583
|
|
|
6584
|
+
const getComponentCss$Y = (hasSlottedAnchor, isActive) => {
|
|
6585
|
+
const anchorJssStyle = {
|
|
6586
|
+
all: 'unset',
|
|
6587
|
+
padding: `calc(${spacingFluidSmall} + 2px) calc(${spacingFluidSmall} + 4px)`, // aligned with link-pure
|
|
6588
|
+
margin: `-2px calc(${spacingFluidSmall} * -1 - 4px)`, // aligned with link-pure
|
|
6589
|
+
borderRadius: borderRadiusSmall, // needed for focus outline
|
|
6590
|
+
font: textMediumStyle.font,
|
|
6591
|
+
color: `var(${cssVarColorPrimary})`,
|
|
6592
|
+
textDecoration: 'underline',
|
|
6593
|
+
textDecorationColor: isActive ? 'inherit' : 'transparent',
|
|
6594
|
+
cursor: isActive ? 'default' : 'pointer',
|
|
6595
|
+
transition: getTransition('text-decoration-color'),
|
|
6596
|
+
};
|
|
6597
|
+
return getCss({
|
|
6598
|
+
'@global': {
|
|
6599
|
+
':host': {
|
|
6600
|
+
display: 'grid',
|
|
6601
|
+
...addImportantToEachRule({
|
|
6602
|
+
...colorSchemeStyles,
|
|
6603
|
+
...hostHiddenStyles,
|
|
6604
|
+
}),
|
|
6605
|
+
},
|
|
6606
|
+
...preventFoucOfNestedElementsStyles,
|
|
6607
|
+
...(hasSlottedAnchor
|
|
6608
|
+
? {
|
|
6609
|
+
'::slotted': addImportantToEachRule({
|
|
6610
|
+
'&(a)': anchorJssStyle,
|
|
6611
|
+
...hoverMediaQuery({
|
|
6612
|
+
'&(a:hover)': {
|
|
6613
|
+
textDecorationColor: 'inherit',
|
|
6614
|
+
},
|
|
6615
|
+
}),
|
|
6616
|
+
// TODO: focus color is the same for all themes but could change in the future
|
|
6617
|
+
...getFocusJssStyle('light', { slotted: 'a', offset: '-2px' }),
|
|
6618
|
+
}),
|
|
6619
|
+
}
|
|
6620
|
+
: {
|
|
6621
|
+
a: {
|
|
6622
|
+
...anchorJssStyle,
|
|
6623
|
+
...hoverMediaQuery({
|
|
6624
|
+
'&:hover': {
|
|
6625
|
+
textDecorationColor: 'inherit',
|
|
6626
|
+
},
|
|
6627
|
+
}),
|
|
6628
|
+
// TODO: focus color is the same for all themes but could change in the future
|
|
6629
|
+
...getFocusJssStyle('light', { offset: '-2px' }),
|
|
6630
|
+
},
|
|
6631
|
+
}),
|
|
6632
|
+
},
|
|
6633
|
+
});
|
|
6634
|
+
};
|
|
6635
|
+
|
|
6636
|
+
const getComponentCss$X = (state, labelSize, hasLabel, theme) => {
|
|
6637
|
+
return getCss({
|
|
6638
|
+
'@global': {
|
|
6639
|
+
':host': {
|
|
6640
|
+
display: 'block',
|
|
6641
|
+
...addImportantToEachRule({
|
|
6642
|
+
...colorSchemeStyles,
|
|
6643
|
+
...hostHiddenStyles,
|
|
6644
|
+
}),
|
|
6645
|
+
},
|
|
6646
|
+
...preventFoucOfNestedElementsStyles,
|
|
6647
|
+
fieldset: {
|
|
6648
|
+
margin: 0,
|
|
6649
|
+
padding: 0,
|
|
6650
|
+
border: 'none',
|
|
6651
|
+
},
|
|
6652
|
+
...(hasLabel && {
|
|
6653
|
+
legend: {
|
|
6654
|
+
margin: `0 0 ${spacingStaticMedium}`,
|
|
6655
|
+
padding: 0,
|
|
6656
|
+
color: getThemedColors(theme).primaryColor,
|
|
6657
|
+
...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
|
|
6658
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6659
|
+
color: getThemedColors('dark').primaryColor,
|
|
6660
|
+
}),
|
|
6661
|
+
},
|
|
6662
|
+
}),
|
|
6663
|
+
},
|
|
6664
|
+
...getFunctionalComponentRequiredStyles(),
|
|
6665
|
+
...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
|
|
6666
|
+
message: {
|
|
6667
|
+
marginTop: spacingStaticMedium,
|
|
6668
|
+
},
|
|
6669
|
+
}),
|
|
6670
|
+
});
|
|
6671
|
+
};
|
|
6672
|
+
|
|
6673
|
+
const getComponentCss$W = (state, labelSize, hasLabel, theme) => {
|
|
6674
|
+
return getCss({
|
|
6675
|
+
'@global': {
|
|
6676
|
+
':host': {
|
|
6677
|
+
display: 'block',
|
|
6678
|
+
...addImportantToEachRule({
|
|
6679
|
+
...colorSchemeStyles,
|
|
6680
|
+
...hostHiddenStyles,
|
|
6681
|
+
}),
|
|
6682
|
+
},
|
|
6683
|
+
...preventFoucOfNestedElementsStyles,
|
|
6684
|
+
fieldset: {
|
|
6685
|
+
margin: 0,
|
|
6686
|
+
padding: 0,
|
|
6687
|
+
border: 'none',
|
|
6688
|
+
},
|
|
6689
|
+
...(hasLabel && {
|
|
6690
|
+
legend: {
|
|
6691
|
+
margin: `0 0 ${spacingStaticMedium}`,
|
|
6692
|
+
padding: 0,
|
|
6693
|
+
color: getThemedColors(theme).primaryColor,
|
|
6694
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6695
|
+
color: getThemedColors('dark').primaryColor,
|
|
6696
|
+
}),
|
|
6697
|
+
...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
|
|
6698
|
+
},
|
|
6699
|
+
}),
|
|
6700
|
+
},
|
|
6701
|
+
...getFunctionalComponentRequiredStyles(),
|
|
6702
|
+
...mergeDeep(getFunctionalComponentStateMessageStyles(theme, state), {
|
|
6703
|
+
message: {
|
|
6704
|
+
marginTop: spacingStaticMedium,
|
|
6705
|
+
},
|
|
6706
|
+
}),
|
|
6707
|
+
});
|
|
6708
|
+
};
|
|
6709
|
+
|
|
6710
|
+
const flexItemWidths = {
|
|
6711
|
+
none: 0,
|
|
6712
|
+
'one-quarter': 25,
|
|
6713
|
+
'one-third': 33.333333,
|
|
6714
|
+
half: 50,
|
|
6715
|
+
'two-thirds': 66.666667,
|
|
6716
|
+
'three-quarters': 75,
|
|
6717
|
+
full: 100,
|
|
6718
|
+
auto: 'auto',
|
|
6719
|
+
};
|
|
6720
|
+
const getComponentCss$V = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
6721
|
+
return getCss({
|
|
6722
|
+
'@global': {
|
|
6723
|
+
':host': addImportantToEachRule({
|
|
6724
|
+
boxSizing: 'border-box',
|
|
6725
|
+
...hostHiddenStyles,
|
|
6726
|
+
...mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
|
|
6727
|
+
width: `${flexItemWidths[widthResponsive]}%`,
|
|
6728
|
+
})), buildResponsiveStyles(offset, (offsetResponsive) => ({
|
|
6729
|
+
marginLeft: `${flexItemWidths[offsetResponsive]}%`,
|
|
6730
|
+
})), buildResponsiveStyles(alignSelf, (alignSelfResponsive) => ({
|
|
6731
|
+
alignSelf: alignSelfResponsive,
|
|
6732
|
+
})), flex !== 'initial' // flex shorthand conflicts with grow and shrink, which means even default grow or shrink props would override flex
|
|
6733
|
+
? buildResponsiveStyles(flex, (flexResponsive) => ({
|
|
6734
|
+
flex: flexResponsive === 'equal' ? '1 1 0' : flexResponsive,
|
|
6735
|
+
}))
|
|
6736
|
+
: mergeDeep(buildResponsiveStyles(grow, (flexGrow) => ({ flexGrow })), buildResponsiveStyles(shrink, (flexShrink) => ({ flexShrink })))),
|
|
6737
|
+
}),
|
|
6738
|
+
},
|
|
6739
|
+
});
|
|
6740
|
+
};
|
|
6741
|
+
|
|
6742
|
+
const getComponentCss$U = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
6743
|
+
return getCss({
|
|
6744
|
+
'@global': {
|
|
6745
|
+
':host': {
|
|
6746
|
+
...buildResponsiveStyles(inline, (inlineResponsive) => ({
|
|
6747
|
+
display: inlineResponsive ? 'inline-flex' : 'flex',
|
|
6748
|
+
})),
|
|
6749
|
+
...addImportantToEachRule(mergeDeep(colorSchemeStyles, hostHiddenStyles, buildResponsiveStyles(wrap, (flexWrapResponsive) => ({ flexWrap: flexWrapResponsive })), buildResponsiveStyles(direction, (flexDirectionResponsive) => ({
|
|
6750
|
+
flexDirection: flexDirectionResponsive,
|
|
6751
|
+
})), buildResponsiveStyles(justifyContent, (justifyContentResponsive) => ({
|
|
6752
|
+
justifyContent: justifyContentResponsive,
|
|
6753
|
+
})), buildResponsiveStyles(alignItems, (alignItemsResponsive) => ({
|
|
6754
|
+
alignItems: alignItemsResponsive,
|
|
6755
|
+
})), buildResponsiveStyles(alignContent, (alignContentResponsive) => ({
|
|
6756
|
+
alignContent: alignContentResponsive,
|
|
6757
|
+
})))),
|
|
6758
|
+
},
|
|
6759
|
+
},
|
|
6760
|
+
});
|
|
6761
|
+
};
|
|
6762
|
+
|
|
6710
6763
|
const headingTags = 'h1,h2,h3,h4,h5,h6';
|
|
6711
6764
|
const dialogHostJssStyle = {
|
|
6712
6765
|
'--pds-internal-grid-outer-column': `calc(${spacingFluidLarge} - ${gridGap})`,
|
|
@@ -6873,7 +6926,7 @@ const getDialogStickyAreaJssStyle = (area, theme) => {
|
|
|
6873
6926
|
const cssVariableWidth$2 = '--p-flyout-width';
|
|
6874
6927
|
// TODO: we shouldn't expose --p-flyout-max-width
|
|
6875
6928
|
const cssVariableMaxWidth = '--p-flyout-max-width';
|
|
6876
|
-
const getComponentCss$
|
|
6929
|
+
const getComponentCss$T = (isOpen, position, hasHeader, hasFooter, hasSubFooter, footerBehavior, theme) => {
|
|
6877
6930
|
const isPositionStart = position === 'start' || position === 'left';
|
|
6878
6931
|
const isFooterFixed = footerBehavior === 'fixed';
|
|
6879
6932
|
return getCss({
|
|
@@ -6983,7 +7036,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
6983
7036
|
const gridItemWidths = [
|
|
6984
7037
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
6985
7038
|
];
|
|
6986
|
-
const getComponentCss$
|
|
7039
|
+
const getComponentCss$S = (size, offset) => {
|
|
6987
7040
|
return getCss({
|
|
6988
7041
|
'@global': {
|
|
6989
7042
|
':host': addImportantToEachRule({
|
|
@@ -7003,7 +7056,7 @@ const getComponentCss$R = (size, offset) => {
|
|
|
7003
7056
|
};
|
|
7004
7057
|
|
|
7005
7058
|
const gutter = `calc(${gridGap} / -2)`;
|
|
7006
|
-
const getComponentCss$
|
|
7059
|
+
const getComponentCss$R = (direction, wrap) => {
|
|
7007
7060
|
return getCss({
|
|
7008
7061
|
'@global': {
|
|
7009
7062
|
':host': {
|
|
@@ -7029,7 +7082,7 @@ const sizeMap$3 = {
|
|
|
7029
7082
|
'x-large': fontSizeHeadingXLarge,
|
|
7030
7083
|
'xx-large': fontSizeHeadingXXLarge,
|
|
7031
7084
|
};
|
|
7032
|
-
const getComponentCss$
|
|
7085
|
+
const getComponentCss$Q = (size, align, color, ellipsis, theme) => {
|
|
7033
7086
|
return getCss({
|
|
7034
7087
|
'@global': {
|
|
7035
7088
|
':host': {
|
|
@@ -7089,7 +7142,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
7089
7142
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
7090
7143
|
};
|
|
7091
7144
|
};
|
|
7092
|
-
const getComponentCss$
|
|
7145
|
+
const getComponentCss$P = (variant, align, color, ellipsis, theme) => {
|
|
7093
7146
|
return getCss({
|
|
7094
7147
|
'@global': {
|
|
7095
7148
|
':host': {
|
|
@@ -7200,7 +7253,7 @@ const isFlippableIcon = (name, source) => {
|
|
|
7200
7253
|
name === 'return' ||
|
|
7201
7254
|
name === 'send'));
|
|
7202
7255
|
};
|
|
7203
|
-
const getComponentCss$
|
|
7256
|
+
const getComponentCss$O = (name, source, color, size, theme) => {
|
|
7204
7257
|
const isColorInherit = color === 'inherit';
|
|
7205
7258
|
const isSizeInherit = size === 'inherit';
|
|
7206
7259
|
const isDark = isThemeDark(theme);
|
|
@@ -7319,7 +7372,7 @@ const getHeadingJssStyle = (theme) => ({
|
|
|
7319
7372
|
...headingSmallStyle,
|
|
7320
7373
|
...getTextJssStyle(theme),
|
|
7321
7374
|
});
|
|
7322
|
-
const getComponentCss$
|
|
7375
|
+
const getComponentCss$N = (state, hasAction, hasClose, theme) => {
|
|
7323
7376
|
return getCss({
|
|
7324
7377
|
'@global': {
|
|
7325
7378
|
':host': {
|
|
@@ -7359,6 +7412,238 @@ const getComponentCss$M = (state, hasAction, hasClose, theme) => {
|
|
|
7359
7412
|
});
|
|
7360
7413
|
};
|
|
7361
7414
|
|
|
7415
|
+
const getSlottedTextFieldTextareaSelectStyles = (child, state, isLoading, theme, additionalDefaultJssStyle) => {
|
|
7416
|
+
const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
|
|
7417
|
+
const { primaryColor: primaryColorDark, contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, disabledColor: disabledColorDark, } = getThemedColors('dark');
|
|
7418
|
+
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
7419
|
+
const { formStateColor: formStateColorDark, formStateHoverColor: formStateHoverColorDark } = getThemedFormStateColors('dark', state);
|
|
7420
|
+
return {
|
|
7421
|
+
[`::slotted(${child})`]: {
|
|
7422
|
+
display: 'block',
|
|
7423
|
+
width: '100%',
|
|
7424
|
+
height: child !== 'textarea'
|
|
7425
|
+
? `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)` // we need 10px additionally so input height becomes 54px
|
|
7426
|
+
: 'auto',
|
|
7427
|
+
margin: 0,
|
|
7428
|
+
outline: 0,
|
|
7429
|
+
WebkitAppearance: 'none', // iOS safari
|
|
7430
|
+
appearance: 'none',
|
|
7431
|
+
boxSizing: 'border-box',
|
|
7432
|
+
border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`,
|
|
7433
|
+
borderRadius: borderRadiusSmall,
|
|
7434
|
+
background: 'transparent',
|
|
7435
|
+
font: textSmallStyle.font.replace('ex', 'ex + 6px'), // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
|
|
7436
|
+
textIndent: 0,
|
|
7437
|
+
color: primaryColor,
|
|
7438
|
+
transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`, // for smooth transitions between e.g. disabled states
|
|
7439
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7440
|
+
borderColor: formStateColorDark || contrastMediumColorDark,
|
|
7441
|
+
color: primaryColorDark,
|
|
7442
|
+
}),
|
|
7443
|
+
...additionalDefaultJssStyle,
|
|
7444
|
+
},
|
|
7445
|
+
'::slotted(:not(input[type="password"]))': {
|
|
7446
|
+
textOverflow: 'ellipsis',
|
|
7447
|
+
},
|
|
7448
|
+
...(!isLoading &&
|
|
7449
|
+
hoverMediaQuery({
|
|
7450
|
+
// with the media query the selector has higher priority and overrides disabled styles
|
|
7451
|
+
[`::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover),label:hover~.wrapper ::slotted(${child}:not(:disabled):not(:focus):not([readonly]))${child === 'select' ? ',label:hover~.wrapper ::part(select-wrapper-dropdown)' : ''}`]: {
|
|
7452
|
+
borderColor: formStateHoverColor || primaryColor,
|
|
7453
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7454
|
+
borderColor: formStateHoverColorDark || primaryColorDark,
|
|
7455
|
+
}),
|
|
7456
|
+
},
|
|
7457
|
+
})),
|
|
7458
|
+
// TODO: getFocusJssStyle() can't be re-used because focus style differs for form elements
|
|
7459
|
+
[`::slotted(${child}:focus)`]: {
|
|
7460
|
+
borderColor: primaryColor,
|
|
7461
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7462
|
+
borderColor: primaryColorDark,
|
|
7463
|
+
}),
|
|
7464
|
+
},
|
|
7465
|
+
[`::slotted(${child}:disabled)`]: {
|
|
7466
|
+
cursor: 'not-allowed',
|
|
7467
|
+
color: disabledColor,
|
|
7468
|
+
borderColor: disabledColor,
|
|
7469
|
+
WebkitTextFillColor: disabledColor,
|
|
7470
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7471
|
+
color: disabledColorDark,
|
|
7472
|
+
borderColor: disabledColorDark,
|
|
7473
|
+
WebkitTextFillColor: disabledColorDark,
|
|
7474
|
+
}),
|
|
7475
|
+
},
|
|
7476
|
+
...(child !== 'select' && {
|
|
7477
|
+
[`::slotted(${child}[readonly])`]: {
|
|
7478
|
+
borderColor: contrastLowColor,
|
|
7479
|
+
background: contrastLowColor,
|
|
7480
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7481
|
+
borderColor: contrastLowColorDark,
|
|
7482
|
+
background: contrastLowColorDark,
|
|
7483
|
+
}),
|
|
7484
|
+
},
|
|
7485
|
+
}),
|
|
7486
|
+
};
|
|
7487
|
+
};
|
|
7488
|
+
const formElementLayeredGap = '9px'; // to have same distance vertically and horizontally for e.g. button/icon within form element
|
|
7489
|
+
const formElementLayeredSafeZone = `calc(${formElementLayeredGap} + ${borderWidthBase})`;
|
|
7490
|
+
// TODO: basic button/icon padding can already be set within style function instead of on component style level
|
|
7491
|
+
const formButtonOrIconPadding = spacingStaticXSmall;
|
|
7492
|
+
// TODO: if we'd use 12px instead, it wouldn't be necessary for textarea to have a custom vertical padding,
|
|
7493
|
+
// unfortunately line-height alignment breaks for a select element for some reasons then
|
|
7494
|
+
// TODO: basic form element padding can already be set within style function instead of on component style level
|
|
7495
|
+
const formElementPaddingVertical = spacingStaticSmall;
|
|
7496
|
+
// TODO: basic form element padding can already be set within style function instead of on component style level
|
|
7497
|
+
const formElementPaddingHorizontal = spacingStaticMedium;
|
|
7498
|
+
const getCalculatedFormElementPaddingHorizontal = (buttonOrIconAmount) => {
|
|
7499
|
+
// when applied, font-family and font-size needs to be set too for correct calculation of ex-unit ($fontLineHeight)
|
|
7500
|
+
return `calc(${formElementLayeredGap} + ${formElementPaddingHorizontal} / 2 + (${fontLineHeight} + ${formButtonOrIconPadding} * 2) * ${buttonOrIconAmount})`;
|
|
7501
|
+
};
|
|
7502
|
+
// TODO: re-use in textarea-wrapper not only in text-field-wrapper
|
|
7503
|
+
const getUnitCounterJssStyle = (isDisabled, isReadonly, theme) => {
|
|
7504
|
+
const { disabledColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
7505
|
+
const { disabledColor: disabledColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
7506
|
+
return {
|
|
7507
|
+
pointerEvents: 'none',
|
|
7508
|
+
maxWidth: '100%',
|
|
7509
|
+
boxSizing: 'border-box',
|
|
7510
|
+
whiteSpace: 'nowrap',
|
|
7511
|
+
overflow: 'hidden',
|
|
7512
|
+
textOverflow: 'ellipsis',
|
|
7513
|
+
font: textSmallStyle.font,
|
|
7514
|
+
color: contrastMediumColor,
|
|
7515
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7516
|
+
color: contrastMediumColorDark,
|
|
7517
|
+
}),
|
|
7518
|
+
...(isDisabled && {
|
|
7519
|
+
color: disabledColor,
|
|
7520
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7521
|
+
color: disabledColorDark,
|
|
7522
|
+
}),
|
|
7523
|
+
}),
|
|
7524
|
+
...(isReadonly && {
|
|
7525
|
+
color: contrastHighColor,
|
|
7526
|
+
})
|
|
7527
|
+
};
|
|
7528
|
+
};
|
|
7529
|
+
|
|
7530
|
+
const cssVarInternalInputPasswordScaling = '--p-internal-input-password-scaling';
|
|
7531
|
+
const getComponentCss$M = (disabled, hideLabel, state, toggle, compact, readOnly, theme) => {
|
|
7532
|
+
// Determines the scaling factor for the input-password size. In "compact" mode, it uses 0.5 to achieve a 36px input-password (compact size).
|
|
7533
|
+
// Defaults to 1 for the standard size and can be overridden by the CSS variable `cssVarInternalInputPasswordScaling`.
|
|
7534
|
+
const scalingVar = `var(${cssVarInternalInputPasswordScaling}, ${compact ? 0.5 : 1})`;
|
|
7535
|
+
const paddingBlock = `max(2px, ${formElementPaddingVertical} * ${scalingVar})`;
|
|
7536
|
+
const paddingInline = `max(2px, ${formElementPaddingHorizontal} * ${scalingVar})`;
|
|
7537
|
+
// TODO: Ideally, 'compact' should only influence the calculation of scalingVar,
|
|
7538
|
+
// ensuring that the paddingButton calculation solely depends on the scaling factor.
|
|
7539
|
+
const paddingButton = compact ? '0px' : `calc(${formButtonOrIconPadding} * ${scalingVar})`;
|
|
7540
|
+
const height = `max(${fontLineHeight}, ${scalingVar} * (${fontLineHeight} + 10px))`;
|
|
7541
|
+
const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
|
|
7542
|
+
const { primaryColor: primaryColorDark, contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, disabledColor: disabledColorDark, } = getThemedColors('dark');
|
|
7543
|
+
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
7544
|
+
const { formStateColor: formStateColorDark, formStateHoverColor: formStateHoverColorDark } = getThemedFormStateColors('dark', state);
|
|
7545
|
+
const hoverStyles = {
|
|
7546
|
+
borderColor: formStateHoverColor || primaryColor,
|
|
7547
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7548
|
+
borderColor: formStateHoverColorDark || primaryColorDark,
|
|
7549
|
+
}),
|
|
7550
|
+
};
|
|
7551
|
+
return getCss({
|
|
7552
|
+
'@global': {
|
|
7553
|
+
':host': {
|
|
7554
|
+
display: 'block',
|
|
7555
|
+
...addImportantToEachRule({
|
|
7556
|
+
...colorSchemeStyles,
|
|
7557
|
+
...hostHiddenStyles,
|
|
7558
|
+
}),
|
|
7559
|
+
},
|
|
7560
|
+
...preventFoucOfNestedElementsStyles,
|
|
7561
|
+
input: {
|
|
7562
|
+
all: 'unset',
|
|
7563
|
+
flex: 1,
|
|
7564
|
+
font: textSmallStyle.font.replace('ex', 'ex + 6px'), // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
|
|
7565
|
+
height,
|
|
7566
|
+
paddingBlock,
|
|
7567
|
+
textIndent: 0,
|
|
7568
|
+
color: primaryColor,
|
|
7569
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7570
|
+
color: primaryColorDark,
|
|
7571
|
+
}),
|
|
7572
|
+
width: '100%',
|
|
7573
|
+
minWidth: '2rem',
|
|
7574
|
+
'&[type="text"]': {
|
|
7575
|
+
textOverflow: 'ellipsis',
|
|
7576
|
+
},
|
|
7577
|
+
},
|
|
7578
|
+
},
|
|
7579
|
+
root: {
|
|
7580
|
+
display: 'grid',
|
|
7581
|
+
gap: spacingStaticXSmall,
|
|
7582
|
+
},
|
|
7583
|
+
wrapper: {
|
|
7584
|
+
border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`,
|
|
7585
|
+
borderRadius: borderRadiusSmall,
|
|
7586
|
+
paddingInlineStart: paddingInline,
|
|
7587
|
+
paddingInlineEnd: toggle ? paddingBlock : paddingInline, // TODO resolve inconsistency in Figma
|
|
7588
|
+
display: 'flex',
|
|
7589
|
+
gap: formElementLayeredGap,
|
|
7590
|
+
transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`,
|
|
7591
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7592
|
+
borderColor: formStateColorDark || contrastMediumColorDark,
|
|
7593
|
+
}),
|
|
7594
|
+
'&:has(input:focus:not([readonly]))': {
|
|
7595
|
+
borderColor: primaryColor,
|
|
7596
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7597
|
+
borderColor: primaryColorDark,
|
|
7598
|
+
}),
|
|
7599
|
+
},
|
|
7600
|
+
...hoverMediaQuery({
|
|
7601
|
+
...(!disabled &&
|
|
7602
|
+
!readOnly && {
|
|
7603
|
+
'&:hover:not(:has(.button:hover, input:focus ))': hoverStyles,
|
|
7604
|
+
}),
|
|
7605
|
+
}),
|
|
7606
|
+
...(disabled && {
|
|
7607
|
+
cursor: 'not-allowed',
|
|
7608
|
+
color: disabledColor,
|
|
7609
|
+
borderColor: disabledColor,
|
|
7610
|
+
WebkitTextFillColor: disabledColor,
|
|
7611
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7612
|
+
color: disabledColorDark,
|
|
7613
|
+
borderColor: disabledColorDark,
|
|
7614
|
+
WebkitTextFillColor: disabledColorDark,
|
|
7615
|
+
}),
|
|
7616
|
+
}),
|
|
7617
|
+
...(readOnly && {
|
|
7618
|
+
cursor: 'text',
|
|
7619
|
+
borderColor: contrastLowColor,
|
|
7620
|
+
background: contrastLowColor,
|
|
7621
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
7622
|
+
borderColor: contrastLowColorDark,
|
|
7623
|
+
background: contrastLowColorDark,
|
|
7624
|
+
}),
|
|
7625
|
+
}),
|
|
7626
|
+
},
|
|
7627
|
+
...(toggle && {
|
|
7628
|
+
button: {
|
|
7629
|
+
placeSelf: 'center',
|
|
7630
|
+
padding: paddingButton, // TODO resolve inconsistency in Figma
|
|
7631
|
+
},
|
|
7632
|
+
}),
|
|
7633
|
+
// .label / .required
|
|
7634
|
+
...getFunctionalComponentLabelStyles(disabled, hideLabel, theme, {
|
|
7635
|
+
...hoverMediaQuery({
|
|
7636
|
+
...(!disabled &&
|
|
7637
|
+
!readOnly && {
|
|
7638
|
+
'&:hover~.wrapper': hoverStyles,
|
|
7639
|
+
}),
|
|
7640
|
+
}),
|
|
7641
|
+
}),
|
|
7642
|
+
// .message
|
|
7643
|
+
...getFunctionalComponentStateMessageStyles(theme, state),
|
|
7644
|
+
});
|
|
7645
|
+
};
|
|
7646
|
+
|
|
7362
7647
|
const getComponentCss$L = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
7363
7648
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme), hasSlottedAnchor && {
|
|
7364
7649
|
'@global': addImportantToEachRule({
|
|
@@ -8076,121 +8361,6 @@ const getComponentCss$E = (model, safeZone, size, color, theme) => {
|
|
|
8076
8361
|
});
|
|
8077
8362
|
};
|
|
8078
8363
|
|
|
8079
|
-
const getSlottedTextFieldTextareaSelectStyles = (child, state, isLoading, theme, additionalDefaultJssStyle) => {
|
|
8080
|
-
const { primaryColor, contrastLowColor, contrastMediumColor, disabledColor } = getThemedColors(theme);
|
|
8081
|
-
const { primaryColor: primaryColorDark, contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, disabledColor: disabledColorDark, } = getThemedColors('dark');
|
|
8082
|
-
const { formStateColor, formStateHoverColor } = getThemedFormStateColors(theme, state);
|
|
8083
|
-
const { formStateColor: formStateColorDark, formStateHoverColor: formStateHoverColorDark } = getThemedFormStateColors('dark', state);
|
|
8084
|
-
return {
|
|
8085
|
-
[`::slotted(${child})`]: {
|
|
8086
|
-
display: 'block',
|
|
8087
|
-
width: '100%',
|
|
8088
|
-
height: child !== 'textarea'
|
|
8089
|
-
? `calc(${fontLineHeight} + 10px + ${borderWidthBase} * 2 + ${spacingStaticSmall} * 2)` // we need 10px additionally so input height becomes 54px
|
|
8090
|
-
: 'auto',
|
|
8091
|
-
margin: 0,
|
|
8092
|
-
outline: 0,
|
|
8093
|
-
WebkitAppearance: 'none', // iOS safari
|
|
8094
|
-
appearance: 'none',
|
|
8095
|
-
boxSizing: 'border-box',
|
|
8096
|
-
border: `${borderWidthBase} solid ${formStateColor || contrastMediumColor}`,
|
|
8097
|
-
borderRadius: borderRadiusSmall,
|
|
8098
|
-
background: 'transparent',
|
|
8099
|
-
font: textSmallStyle.font.replace('ex', 'ex + 6px'), // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
|
|
8100
|
-
textIndent: 0,
|
|
8101
|
-
color: primaryColor,
|
|
8102
|
-
transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`, // for smooth transitions between e.g. disabled states
|
|
8103
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8104
|
-
borderColor: formStateColorDark || contrastMediumColorDark,
|
|
8105
|
-
color: primaryColorDark,
|
|
8106
|
-
}),
|
|
8107
|
-
...additionalDefaultJssStyle,
|
|
8108
|
-
},
|
|
8109
|
-
'::slotted(:not(input[type="password"]))': {
|
|
8110
|
-
textOverflow: 'ellipsis',
|
|
8111
|
-
},
|
|
8112
|
-
...(!isLoading &&
|
|
8113
|
-
hoverMediaQuery({
|
|
8114
|
-
// with the media query the selector has higher priority and overrides disabled styles
|
|
8115
|
-
[`::slotted(${child}:not(:disabled):not(:focus):not([readonly]):hover),label:hover~.wrapper ::slotted(${child}:not(:disabled):not(:focus):not([readonly]))${child === 'select' ? ',label:hover~.wrapper ::part(select-wrapper-dropdown)' : ''}`]: {
|
|
8116
|
-
borderColor: formStateHoverColor || primaryColor,
|
|
8117
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8118
|
-
borderColor: formStateHoverColorDark || primaryColorDark,
|
|
8119
|
-
}),
|
|
8120
|
-
},
|
|
8121
|
-
})),
|
|
8122
|
-
// TODO: getFocusJssStyle() can't be re-used because focus style differs for form elements
|
|
8123
|
-
[`::slotted(${child}:focus)`]: {
|
|
8124
|
-
borderColor: primaryColor,
|
|
8125
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8126
|
-
borderColor: primaryColorDark,
|
|
8127
|
-
}),
|
|
8128
|
-
},
|
|
8129
|
-
[`::slotted(${child}:disabled)`]: {
|
|
8130
|
-
cursor: 'not-allowed',
|
|
8131
|
-
color: disabledColor,
|
|
8132
|
-
borderColor: disabledColor,
|
|
8133
|
-
WebkitTextFillColor: disabledColor,
|
|
8134
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8135
|
-
color: disabledColorDark,
|
|
8136
|
-
borderColor: disabledColorDark,
|
|
8137
|
-
WebkitTextFillColor: disabledColorDark,
|
|
8138
|
-
}),
|
|
8139
|
-
},
|
|
8140
|
-
...(child !== 'select' && {
|
|
8141
|
-
[`::slotted(${child}[readonly])`]: {
|
|
8142
|
-
borderColor: contrastLowColor,
|
|
8143
|
-
background: contrastLowColor,
|
|
8144
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8145
|
-
borderColor: contrastLowColorDark,
|
|
8146
|
-
background: contrastLowColorDark,
|
|
8147
|
-
}),
|
|
8148
|
-
},
|
|
8149
|
-
}),
|
|
8150
|
-
};
|
|
8151
|
-
};
|
|
8152
|
-
const formElementLayeredGap = '9px'; // to have same distance vertically and horizontally for e.g. button/icon within form element
|
|
8153
|
-
const formElementLayeredSafeZone = `calc(${formElementLayeredGap} + ${borderWidthBase})`;
|
|
8154
|
-
// TODO: basic button/icon padding can already be set within style function instead of on component style level
|
|
8155
|
-
const formButtonOrIconPadding = spacingStaticXSmall;
|
|
8156
|
-
// TODO: if we'd use 12px instead, it wouldn't be necessary for textarea to have a custom vertical padding,
|
|
8157
|
-
// unfortunately line-height alignment breaks for a select element for some reasons then
|
|
8158
|
-
// TODO: basic form element padding can already be set within style function instead of on component style level
|
|
8159
|
-
const formElementPaddingVertical = spacingStaticSmall;
|
|
8160
|
-
// TODO: basic form element padding can already be set within style function instead of on component style level
|
|
8161
|
-
const formElementPaddingHorizontal = spacingStaticMedium;
|
|
8162
|
-
const getCalculatedFormElementPaddingHorizontal = (buttonOrIconAmount) => {
|
|
8163
|
-
// when applied, font-family and font-size needs to be set too for correct calculation of ex-unit ($fontLineHeight)
|
|
8164
|
-
return `calc(${formElementLayeredGap} + ${formElementPaddingHorizontal} / 2 + (${fontLineHeight} + ${formButtonOrIconPadding} * 2) * ${buttonOrIconAmount})`;
|
|
8165
|
-
};
|
|
8166
|
-
// TODO: re-use in textarea-wrapper not only in text-field-wrapper
|
|
8167
|
-
const getUnitCounterJssStyle = (isDisabled, isReadonly, theme) => {
|
|
8168
|
-
const { disabledColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
8169
|
-
const { disabledColor: disabledColorDark, contrastMediumColor: contrastMediumColorDark } = getThemedColors('dark');
|
|
8170
|
-
return {
|
|
8171
|
-
pointerEvents: 'none',
|
|
8172
|
-
maxWidth: '100%',
|
|
8173
|
-
boxSizing: 'border-box',
|
|
8174
|
-
whiteSpace: 'nowrap',
|
|
8175
|
-
overflow: 'hidden',
|
|
8176
|
-
textOverflow: 'ellipsis',
|
|
8177
|
-
font: textSmallStyle.font,
|
|
8178
|
-
color: contrastMediumColor,
|
|
8179
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8180
|
-
color: contrastMediumColorDark,
|
|
8181
|
-
}),
|
|
8182
|
-
...(isDisabled && {
|
|
8183
|
-
color: disabledColor,
|
|
8184
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8185
|
-
color: disabledColorDark,
|
|
8186
|
-
}),
|
|
8187
|
-
}),
|
|
8188
|
-
...(isReadonly && {
|
|
8189
|
-
color: contrastHighColor,
|
|
8190
|
-
})
|
|
8191
|
-
};
|
|
8192
|
-
};
|
|
8193
|
-
|
|
8194
8364
|
const getButtonJssStyle = (componentName, isOpen, isDisabled, state, hasSlottedImage, cssVarScaling, theme) => {
|
|
8195
8365
|
const cssVarBackgroundColor = `--p-${componentName}-background-color`;
|
|
8196
8366
|
const cssVarTextColor = `--p-${componentName}-text-color`;
|
|
@@ -11111,4 +11281,4 @@ const getComponentCss = (size, theme) => {
|
|
|
11111
11281
|
});
|
|
11112
11282
|
};
|
|
11113
11283
|
|
|
11114
|
-
export { getComponentCss$
|
|
11284
|
+
export { getComponentCss$1c as getAccordionCss, getComponentCss$1b as getBannerCss, getComponentCss$17 as getButtonCss, getComponentCss$1a as getButtonGroupCss, getComponentCss$19 as getButtonPureCss, getComponentCss$18 as getButtonTileCss, getComponentCss$16 as getCanvasCss, getComponentCss$15 as getCarouselCss, getComponentCss$13 as getCheckboxCss, getComponentCss$14 as getCheckboxWrapperCss, getComponentCss$12 as getContentWrapperCss, getComponentCss$11 as getCrestCss, getComponentCss$10 as getDisplayCss, getComponentCss$$ as getDividerCss, getComponentCss$_ as getDrilldownCss, getComponentCss$Z as getDrilldownItemCss, getComponentCss$Y as getDrilldownLinkCss, getComponentCss$W as getFieldsetCss, getComponentCss$X as getFieldsetWrapperCss, getComponentCss$U as getFlexCss, getComponentCss$V as getFlexItemCss, getComponentCss$T as getFlyoutCss, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$R as getGridCss, getComponentCss$S as getGridItemCss, getComponentCss$Q as getHeadingCss, getComponentCss$P as getHeadlineCss, getComponentCss$O as getIconCss, getComponentCss$N as getInlineNotificationCss, getComponentCss$M as getInputPasswordCss, getComponentCss$K as getLinkCss, getComponentCss$L as getLinkPureCss, getComponentCss$K as getLinkSocialCss, getComponentCss$H as getLinkTileCss, getComponentCss$J as getLinkTileModelSignatureCss, getComponentCss$I as getLinkTileProductCss, getComponentCss$G as getMarqueCss, getComponentCss$F as getModalCss, getComponentCss$E as getModelSignatureCss, getComponentCss$C as getMultiSelectCss, getComponentCss$D as getMultiSelectOptionCss, getComponentCss$B as getOptgroupCss, getComponentCss$A as getPaginationCss, getComponentCss$z as getPinCodeCss, getComponentCss$y as getPopoverCss, getComponentCss$x as getRadioButtonWrapperCss, getComponentCss$w as getScrollerCss, getComponentCss$u as getSegmentedControlCss, getComponentCss$v as getSegmentedControlItemCss, getComponentCss$q as getSelectCss, getComponentCss$r as getSelectOptionCss, getComponentCss$s as getSelectWrapperCss, getComponentCss$t as getSelectWrapperDropdownCss, getComponentCss$p as getSheetCss, getComponentCss$o as getSpinnerCss, getComponentCss$m as getStepperHorizontalCss, getComponentCss$n as getStepperHorizontalItemCss, getComponentCss$l as getSwitchCss, getComponentCss$k as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$j as getTableCss, getComponentCss$h as getTableHeadCellCss, getComponentCss$f as getTableHeadCss, getComponentCss$g as getTableHeadRowCss, getComponentCss$e as getTableRowCss, getComponentCss$d as getTabsBarCss, getComponentCss$b as getTabsCss, getComponentCss$c as getTabsItemCss, getComponentCss$9 as getTagCss, getComponentCss$a as getTagDismissibleCss, getComponentCss$5 as getTextCss, getComponentCss$8 as getTextFieldWrapperCss, getComponentCss$7 as getTextListCss, getComponentCss$6 as getTextListItemCss, getComponentCss$3 as getTextareaCss, getComponentCss$4 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
|