@porsche-design-system/components-react 4.2.0-rc.4 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/cjs/lib/components/flyout.wrapper.cjs +3 -3
- package/emotion/package.json +1 -8
- package/esm/hooks.mjs +1 -1
- package/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/esm/lib/components/button.wrapper.d.ts +24 -24
- package/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/esm/lib/components/display.wrapper.d.ts +10 -10
- package/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/esm/lib/components/flyout.wrapper.d.ts +31 -21
- package/esm/lib/components/flyout.wrapper.mjs +3 -3
- package/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/esm/lib/components/link.wrapper.d.ts +20 -20
- package/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/esm/lib/components/select.wrapper.d.ts +30 -30
- package/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/esm/lib/components/table.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/package.json +6 -6
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +144 -352
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +177 -90
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +8 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +144 -352
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +174 -91
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/hooks.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +9 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +8 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -1
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/banner.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/button.wrapper.d.ts +24 -24
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +34 -34
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/display.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +31 -21
- package/ssr/esm/lib/components/heading.wrapper.d.ts +14 -14
- package/ssr/esm/lib/components/icon.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +46 -46
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +38 -38
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +36 -36
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +44 -44
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +40 -40
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +22 -22
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +26 -26
- package/ssr/esm/lib/components/link.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/modal.wrapper.d.ts +20 -20
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +28 -28
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +32 -32
- package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +12 -12
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +4 -4
- package/ssr/esm/lib/components/select.wrapper.d.ts +30 -30
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/switch.wrapper.d.ts +16 -16
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/table.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +10 -10
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
- package/ssr/esm/lib/components/tag.wrapper.d.ts +8 -8
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +48 -48
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
- package/ssr/esm/lib/dsr-components/banner.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/modal.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/popover.d.ts +1 -1
- package/ssr/esm/lib/dsr-components/sheet.d.ts +1 -0
- package/tailwindcss/index.css +57 -75
- package/vanilla-extract/package.json +1 -8
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { messageId, StateMessage } from './state-message.mjs';
|
|
|
15
15
|
class DSRFieldset extends Component {
|
|
16
16
|
host;
|
|
17
17
|
render() {
|
|
18
|
-
const {
|
|
18
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
19
19
|
const hasMessageValue = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state);
|
|
20
20
|
const style = minifyCss(getComponentCss$X(this.props.state, this.props.labelSize, (this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0)));
|
|
21
21
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs("fieldset", { "aria-describedby": hasMessageValue ? messageId : null, ...getFieldsetAriaAttributes(this.props.required, this.props.state === 'error', this.props.aria), children: [(this.props.label || namedSlotChildren.filter(({ props: { slot } }) => slot === 'label').length > 0) && (jsxs("legend", { children: [this.props.label || jsx("slot", { name: "label" }), this.props.required && jsx(Required, {})] })), jsx("slot", {}), jsx(StateMessage, { hasMessage: (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state), state: this.props.state, message: this.props.message, host: null })] })] }), this.props.children] }));
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { getFlagCss as getComponentCss$W } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { parseAndGetAriaAttributes, buildFlagUrl } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
6
|
|
|
7
7
|
class DSRFlag extends Component {
|
|
8
8
|
host;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { getFlyoutCss as getComponentCss$V } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
-
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
|
+
import { createTopLayerController, parseAndGetAriaAttributes, showDialog } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
import { DialogBase } from './dialog-base.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -23,12 +23,18 @@ class DSRFlyout extends Component {
|
|
|
23
23
|
hasHeader;
|
|
24
24
|
hasFooter;
|
|
25
25
|
hasSubFooter;
|
|
26
|
+
topLayer = createTopLayerController({
|
|
27
|
+
getElement: () => this.props.dialog,
|
|
28
|
+
isShown: () => !!this.props.dialog?.open,
|
|
29
|
+
show: () => showDialog(this.props.dialog, this.props.scroller),
|
|
30
|
+
hide: () => this.props.dialog?.close(),
|
|
31
|
+
});
|
|
26
32
|
render() {
|
|
27
|
-
const {
|
|
33
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
28
34
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
29
35
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
30
36
|
const hasSubFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'sub-footer').length > 0;
|
|
31
|
-
const style = minifyCss(getComponentCss$V(this.props.open, this.props.background, this.props.backdrop, this.props.position, hasHeader, hasFooter, hasSubFooter, this.props.footerBehavior));
|
|
37
|
+
const style = minifyCss(getComponentCss$V(this.props.open, this.props.background, this.props.backdrop, this.props.position, hasHeader, hasFooter, hasSubFooter, this.props.footerBehavior, this.props.fullscreen));
|
|
32
38
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsx(DialogBase, { host: null, dismissable: true, containerClass: "flyout", header: hasHeader ? jsx("slot", { name: "header" }) : undefined, footer: hasFooter ? jsx("slot", { name: "footer" }) : undefined, subFooter: hasSubFooter ? jsx("slot", { name: "sub-footer" }) : undefined, ariaAttributes: parseAndGetAriaAttributes({
|
|
33
39
|
'aria-modal': true,
|
|
34
40
|
...{ 'aria-label': hasHeader ? namedSlotChildren.find(({ props: { slot } }) => slot === 'header')?.props.children : 'Flyout' },
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
4
4
|
import { getIconCss as getComponentCss$T } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { parseAndGetAriaAttributes, buildIconUrl } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
6
|
|
|
7
7
|
class DSRIcon extends Component {
|
|
8
8
|
host;
|
|
@@ -17,7 +17,7 @@ class DSRInlineNotification extends Component {
|
|
|
17
17
|
host;
|
|
18
18
|
hasHeadingSlot;
|
|
19
19
|
render() {
|
|
20
|
-
const {
|
|
20
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
21
21
|
const hasHeadingSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'heading').length > 0;
|
|
22
22
|
const headingText = this.props.heading ? this.props.heading : namedSlotChildren.find(({ props: { slot } }) => slot === 'heading')?.props.children;
|
|
23
23
|
const style = minifyCss(getComponentCss$S(this.props.state, !!this.props.actionLabel, this.props.dismissButton, !!(this.props.heading || hasHeadingSlot)));
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getLinkCss as getComponentCss$D } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { hasVisibleIcon, parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { PIcon } from '../components/icon.wrapper.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { getModalCss as getComponentCss$C } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
-
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
|
+
import { createTopLayerController, parseAndGetAriaAttributes, showDialog } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
import { DialogBase } from './dialog-base.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -20,8 +20,14 @@ class DSRModal extends Component {
|
|
|
20
20
|
footer;
|
|
21
21
|
hasHeader;
|
|
22
22
|
hasFooter;
|
|
23
|
+
topLayer = createTopLayerController({
|
|
24
|
+
getElement: () => this.props.dialog,
|
|
25
|
+
isShown: () => !!this.props.dialog?.open,
|
|
26
|
+
show: () => showDialog(this.props.dialog, this.props.scroller),
|
|
27
|
+
hide: () => this.props.dialog?.close(),
|
|
28
|
+
});
|
|
23
29
|
render() {
|
|
24
|
-
const {
|
|
30
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
25
31
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
26
32
|
const hasFooter = namedSlotChildren.filter(({ props: { slot } }) => slot === 'footer').length > 0;
|
|
27
33
|
this.props.disableCloseButton ? false : this.props.dismissButton;
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs
CHANGED
|
@@ -66,7 +66,7 @@ class DSRMultiSelect extends Component {
|
|
|
66
66
|
// triggers value watcher which syncs form value
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
const {
|
|
69
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
70
70
|
const hasCustomFilterSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'filter').length > 0;
|
|
71
71
|
const hasCustomSelectedSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'selected').length > 0;
|
|
72
72
|
const buttonId = 'button';
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getPinCodeCss as getComponentCss$w } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import { labelId, descriptionId,
|
|
8
|
-
import {
|
|
7
|
+
import { labelId, descriptionId, setAriaIDREF, isCurrentInput, getFieldsetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
|
+
import { LoadingMessage, loadingId } from './loading-message.mjs';
|
|
9
9
|
import { Label } from './label.mjs';
|
|
10
10
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
11
11
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
@@ -35,7 +35,7 @@ class DSRPinCode extends Component {
|
|
|
35
35
|
formStateRestoreCallback() {
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
const {
|
|
38
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
39
39
|
// reset array of input elements
|
|
40
40
|
this.inputElements = [];
|
|
41
41
|
const currentInputId = 'current-input';
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { PIcon } from '../components/icon.wrapper.mjs';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @slot {"name": "", "description": "Default slot for the popover content." }
|
|
12
|
-
* @slot {"name": "button", "description": "
|
|
12
|
+
* @slot {"name": "button", "description": "Renders a custom trigger button. When used, the default info button is replaced." }
|
|
13
13
|
*/
|
|
14
14
|
class DSRPopover extends Component {
|
|
15
15
|
host;
|
|
@@ -23,7 +23,7 @@ class DSRPopover extends Component {
|
|
|
23
23
|
// TODO: This should be updated when slot is changed
|
|
24
24
|
hasSlottedButton;
|
|
25
25
|
render() {
|
|
26
|
-
const {
|
|
26
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
27
27
|
const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
|
|
28
28
|
const style = minifyCss(getComponentCss$v()).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4');
|
|
29
29
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedButton ? (jsx("slot", { name: "button" })) : (jsxs("button", { type: "button", ...parseAndGetAriaAttributes({
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getRadioGroupCss as getComponentCss$t } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import { descriptionId,
|
|
8
|
-
import {
|
|
7
|
+
import { descriptionId, labelId, setAriaIDREF, getFieldsetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
|
+
import { LoadingMessage, loadingId } from './loading-message.mjs';
|
|
9
9
|
import { Label } from './label.mjs';
|
|
10
10
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
11
11
|
import { PSpinner } from '../components/spinner.wrapper.mjs';
|
|
@@ -35,7 +35,7 @@ class DSRRadioGroup extends Component {
|
|
|
35
35
|
formStateRestoreCallback() {
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
const {
|
|
38
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
39
39
|
const inputDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
|
|
40
40
|
const inputMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
41
41
|
const style = minifyCss(getComponentCss$t(this.props.disabled, this.props.loading, this.props.hideLabel, this.props.state, this.props.compact, this.props.direction));
|
|
@@ -13,7 +13,7 @@ import { PIcon } from '../components/icon.wrapper.mjs';
|
|
|
13
13
|
class DSRSegmentedControlItem extends Component {
|
|
14
14
|
host;
|
|
15
15
|
render() {
|
|
16
|
-
const { children
|
|
16
|
+
const { children} = splitChildren(this.props.children);
|
|
17
17
|
// this additional validation is still needed because undefined is allowed with current propTypes
|
|
18
18
|
const hasIcon = !!this.props.icon || !!this.props.iconSource;
|
|
19
19
|
const hasSlottedContent = !!children.length;
|
|
@@ -4,7 +4,7 @@ import '../../provider.mjs';
|
|
|
4
4
|
import { splitChildren } from '../../splitChildren.mjs';
|
|
5
5
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
6
6
|
import { getSegmentedControlCss as getComponentCss$q } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
7
|
-
import { descriptionId,
|
|
7
|
+
import { descriptionId, labelId, setAriaIDREF, getFieldsetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
8
8
|
import { Label } from './label.mjs';
|
|
9
9
|
import { messageId, StateMessage } from './state-message.mjs';
|
|
10
10
|
import { PScroller } from '../components/scroller.wrapper.mjs';
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs
CHANGED
|
@@ -61,7 +61,7 @@ class DSRSelect extends Component {
|
|
|
61
61
|
// triggers value watcher which syncs form value
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
const {
|
|
64
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
65
65
|
const hasCustomFilterSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'filter').length > 0;
|
|
66
66
|
const hasCustomSelectedSlot = namedSlotChildren.filter(({ props: { slot } }) => slot === 'selected').length > 0;
|
|
67
67
|
const buttonId = 'button';
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { splitChildren } from '../../splitChildren.mjs';
|
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { minifyCss } from '../../minifyCss.mjs';
|
|
5
5
|
import { getSheetCss as getComponentCss$n } from '../../../../../../components/dist/styles/esm/styles-entry.mjs';
|
|
6
|
-
import { parseAndGetAriaAttributes } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
6
|
+
import { createTopLayerController, parseAndGetAriaAttributes, showDialog } from '../../../../../../components/dist/utils/esm/utils-entry.mjs';
|
|
7
7
|
import { DialogBase } from './dialog-base.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -17,8 +17,14 @@ class DSRSheet extends Component {
|
|
|
17
17
|
dialog;
|
|
18
18
|
scroller;
|
|
19
19
|
hasHeader;
|
|
20
|
+
topLayer = createTopLayerController({
|
|
21
|
+
getElement: () => this.props.dialog,
|
|
22
|
+
isShown: () => !!this.props.dialog?.open,
|
|
23
|
+
show: () => showDialog(this.props.dialog, this.props.scroller),
|
|
24
|
+
hide: () => this.props.dialog?.close(),
|
|
25
|
+
});
|
|
20
26
|
render() {
|
|
21
|
-
const {
|
|
27
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
22
28
|
const hasHeader = namedSlotChildren.filter(({ props: { slot } }) => slot === 'header').length > 0;
|
|
23
29
|
if (this.props.open) ;
|
|
24
30
|
const style = minifyCss(getComponentCss$n(this.props.open, this.props.background, this.props.dismissButton));
|
|
@@ -16,7 +16,7 @@ class DSRStepperHorizontal extends Component {
|
|
|
16
16
|
slot;
|
|
17
17
|
resizeObserver;
|
|
18
18
|
render() {
|
|
19
|
-
const { children,
|
|
19
|
+
const { children, otherChildren } = splitChildren(this.props.children);
|
|
20
20
|
const manipulatedChildren = children.map((child) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
21
21
|
? { ...child, props: { ...child.props, theme: this.props.theme } }
|
|
22
22
|
: child);
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { PScroller } from '../components/scroller.wrapper.mjs';
|
|
|
13
13
|
class DSRTable extends Component {
|
|
14
14
|
host;
|
|
15
15
|
render() {
|
|
16
|
-
const {
|
|
16
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
17
17
|
const hasSlottedCaption = namedSlotChildren.filter(({ props: { slot } }) => slot === 'caption').length > 0;
|
|
18
18
|
const captionId = 'caption';
|
|
19
19
|
const tableAttr = this.props.caption
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs
CHANGED
|
@@ -22,7 +22,7 @@ class DSRTabsBar extends Component {
|
|
|
22
22
|
isTabList;
|
|
23
23
|
resizeObserver;
|
|
24
24
|
render() {
|
|
25
|
-
const { children
|
|
25
|
+
const { children} = splitChildren(this.props.children);
|
|
26
26
|
const style = minifyCss(getComponentCss$b(this.props.background, this.props.size, this.props.compact, getSanitizedActiveTabIndex(this.props.activeTabIndex, children)));
|
|
27
27
|
return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(PScroller, { className: "scroller", compact: this.props.compact, ...(this.props.isTabList && { aria: { role: 'tablist' } }), children: [jsx("slot", {}), jsx("span", { className: "bar" })] })] }), this.props.children] }));
|
|
28
28
|
}
|
|
@@ -16,7 +16,7 @@ class DSRTabs extends Component {
|
|
|
16
16
|
tabsItems = [];
|
|
17
17
|
slot;
|
|
18
18
|
render() {
|
|
19
|
-
const { children,
|
|
19
|
+
const { children, otherChildren } = splitChildren(this.props.children);
|
|
20
20
|
const manipulatedChildren = children.map((child, i) => typeof child === 'object' && 'props' in child && otherChildren.includes(child)
|
|
21
21
|
? { ...child, props: { ...child.props, theme: this.props.theme, hidden: this.props.activeTabIndex !== i ? true : null } }
|
|
22
22
|
: child);
|
package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs
CHANGED
|
@@ -33,7 +33,7 @@ class DSRTextarea extends Component {
|
|
|
33
33
|
formStateRestoreCallback() {
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
const {
|
|
36
|
+
const { namedSlotChildren} = splitChildren(this.props.children);
|
|
37
37
|
const id = 'textarea';
|
|
38
38
|
const textareaDescriptionId = (this.props.description || namedSlotChildren.filter(({ props: { slot } }) => slot === 'description').length > 0) ? descriptionId : undefined;
|
|
39
39
|
const textareaMessageId = (this.props.message || namedSlotChildren.filter(({ props: { slot } }) => slot === 'message').length > 0) && ['success', 'error'].includes(this.props.state) ? messageId : undefined;
|
|
@@ -2,17 +2,17 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { AccordionAlignMarker, AccordionBackground, AccordionHeadingTag, BreakpointCustomizable, AccordionUpdateEventDetail, AccordionSize } from '../types';
|
|
3
3
|
export type PAccordionProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Positions the expand/collapse marker icon at the start or end of the summary section.
|
|
6
6
|
* @default 'end'
|
|
7
7
|
*/
|
|
8
8
|
alignMarker?: AccordionAlignMarker;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the background color of the accordion panel. Use `frosted` only when placed on images, videos, or gradients.
|
|
11
11
|
* @default 'none'
|
|
12
12
|
*/
|
|
13
13
|
background?: AccordionBackground;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Reduces padding and spacing for a more compact layout, useful in space-constrained interfaces.
|
|
16
16
|
*/
|
|
17
17
|
compact?: boolean;
|
|
18
18
|
/**
|
|
@@ -30,7 +30,7 @@ export type PAccordionProps = BaseProps & {
|
|
|
30
30
|
*/
|
|
31
31
|
indent?: BreakpointCustomizable<boolean>;
|
|
32
32
|
/**
|
|
33
|
-
* Emitted when the accordion state
|
|
33
|
+
* Emitted when the user toggles the accordion open or closed, with the new open state in the event detail.
|
|
34
34
|
*/
|
|
35
35
|
onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
36
36
|
/**
|
|
@@ -49,17 +49,17 @@ export type PAccordionProps = BaseProps & {
|
|
|
49
49
|
};
|
|
50
50
|
export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Positions the expand/collapse marker icon at the start or end of the summary section.
|
|
53
53
|
* @default 'end'
|
|
54
54
|
*/
|
|
55
55
|
alignMarker?: AccordionAlignMarker;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Sets the background color of the accordion panel. Use `frosted` only when placed on images, videos, or gradients.
|
|
58
58
|
* @default 'none'
|
|
59
59
|
*/
|
|
60
60
|
background?: AccordionBackground;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Reduces padding and spacing for a more compact layout, useful in space-constrained interfaces.
|
|
63
63
|
*/
|
|
64
64
|
compact?: boolean;
|
|
65
65
|
/**
|
|
@@ -77,7 +77,7 @@ export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<
|
|
|
77
77
|
*/
|
|
78
78
|
indent?: BreakpointCustomizable<boolean>;
|
|
79
79
|
/**
|
|
80
|
-
* Emitted when the accordion state
|
|
80
|
+
* Emitted when the user toggles the accordion open or closed, with the new open state in the event detail.
|
|
81
81
|
*/
|
|
82
82
|
onUpdate?: (event: CustomEvent<AccordionUpdateEventDetail>) => void;
|
|
83
83
|
/**
|
|
@@ -2,82 +2,82 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { BannerHeadingTag, BreakpointCustomizable, BannerPosition, BannerState } from '../types';
|
|
3
3
|
export type PBannerProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
* Sets the description text
|
|
5
|
+
* Sets the supporting description text shown below the heading.
|
|
6
6
|
* @default ''
|
|
7
7
|
*/
|
|
8
8
|
description?: string;
|
|
9
9
|
/**
|
|
10
|
-
* Shows a dismiss button
|
|
10
|
+
* Shows a dismiss button so the user can manually close the banner.
|
|
11
11
|
* @default true
|
|
12
12
|
*/
|
|
13
13
|
dismissButton?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
* Sets the heading text of the banner.
|
|
15
|
+
* Sets the heading text displayed at the top of the banner.
|
|
16
16
|
* @default ''
|
|
17
17
|
*/
|
|
18
18
|
heading?: string;
|
|
19
19
|
/**
|
|
20
|
-
* Sets the heading tag
|
|
20
|
+
* Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure for the heading.
|
|
21
21
|
* @default 'h5'
|
|
22
22
|
*/
|
|
23
23
|
headingTag?: BannerHeadingTag;
|
|
24
24
|
/**
|
|
25
|
-
* Emitted when the banner
|
|
25
|
+
* Emitted when the user closes the banner via the dismiss button or Escape key.
|
|
26
26
|
*/
|
|
27
27
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
28
28
|
/**
|
|
29
|
-
* Controls whether the banner is
|
|
29
|
+
* Controls whether the banner is visible. Set to `true` to show it and `false` to hide it.
|
|
30
30
|
* @default false
|
|
31
31
|
*/
|
|
32
32
|
open: boolean;
|
|
33
33
|
/**
|
|
34
|
-
* Sets the position of the banner.
|
|
34
|
+
* Sets the position of the banner on screen — `top` or `bottom`. Supports responsive breakpoint values.
|
|
35
35
|
* @default { base: 'bottom', s: 'top' }
|
|
36
36
|
*/
|
|
37
37
|
position?: BreakpointCustomizable<BannerPosition>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Sets the visual state of the banner — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
|
|
40
40
|
* @default 'info'
|
|
41
41
|
*/
|
|
42
42
|
state?: BannerState;
|
|
43
43
|
};
|
|
44
44
|
export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "inputMode" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
45
45
|
/**
|
|
46
|
-
* Sets the description text
|
|
46
|
+
* Sets the supporting description text shown below the heading.
|
|
47
47
|
* @default ''
|
|
48
48
|
*/
|
|
49
49
|
description?: string;
|
|
50
50
|
/**
|
|
51
|
-
* Shows a dismiss button
|
|
51
|
+
* Shows a dismiss button so the user can manually close the banner.
|
|
52
52
|
* @default true
|
|
53
53
|
*/
|
|
54
54
|
dismissButton?: boolean;
|
|
55
55
|
/**
|
|
56
|
-
* Sets the heading text of the banner.
|
|
56
|
+
* Sets the heading text displayed at the top of the banner.
|
|
57
57
|
* @default ''
|
|
58
58
|
*/
|
|
59
59
|
heading?: string;
|
|
60
60
|
/**
|
|
61
|
-
* Sets the heading tag
|
|
61
|
+
* Sets the HTML heading tag (e.g. h2, h3) to maintain correct document structure for the heading.
|
|
62
62
|
* @default 'h5'
|
|
63
63
|
*/
|
|
64
64
|
headingTag?: BannerHeadingTag;
|
|
65
65
|
/**
|
|
66
|
-
* Emitted when the banner
|
|
66
|
+
* Emitted when the user closes the banner via the dismiss button or Escape key.
|
|
67
67
|
*/
|
|
68
68
|
onDismiss?: (event: CustomEvent<void>) => void;
|
|
69
69
|
/**
|
|
70
|
-
* Controls whether the banner is
|
|
70
|
+
* Controls whether the banner is visible. Set to `true` to show it and `false` to hide it.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
open: boolean;
|
|
74
74
|
/**
|
|
75
|
-
* Sets the position of the banner.
|
|
75
|
+
* Sets the position of the banner on screen — `top` or `bottom`. Supports responsive breakpoint values.
|
|
76
76
|
* @default { base: 'bottom', s: 'top' }
|
|
77
77
|
*/
|
|
78
78
|
position?: BreakpointCustomizable<BannerPosition>;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Sets the visual state of the banner — controls the icon and color scheme (`info`, `warning`, `error`, `success`).
|
|
81
81
|
* @default 'info'
|
|
82
82
|
*/
|
|
83
83
|
state?: BannerState;
|